From 2489a0aca7efde1f2c983cf7a0cab81c01f6cda6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bernardy Date: Thu, 24 Aug 2017 10:57:45 +0200 Subject: [PATCH] protobuf: add 3.3 --- pkgs/development/libraries/protobuf/3.3.nix | 6 ++++++ pkgs/top-level/all-packages.nix | 3 +-- pkgs/top-level/python-packages.nix | 6 +++++- 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 pkgs/development/libraries/protobuf/3.3.nix diff --git a/pkgs/development/libraries/protobuf/3.3.nix b/pkgs/development/libraries/protobuf/3.3.nix new file mode 100644 index 000000000000..e6a8f05cc18d --- /dev/null +++ b/pkgs/development/libraries/protobuf/3.3.nix @@ -0,0 +1,6 @@ +{ callPackage, lib, ... }: + +lib.overrideDerivation (callPackage ./generic-v3.nix { + version = "3.3.0"; + sha256 = "1258yz9flyyaswh3izv227kwnhwcxn4nwavdz9iznqmh24qmi59w"; +}) (attrs: { NIX_CFLAGS_COMPILE = "-Wno-error"; }) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4d30e7f1fab3..3f8f8793db1f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9983,10 +9983,9 @@ with pkgs; protobuf = protobuf2_6; protobuf3_0 = lowPrio (callPackage ../development/libraries/protobuf/3.0.nix { }); - # 3.0.0-beta-2 is only introduced for tensorflow. remove this version when tensorflow is moved to 3.0. - protobuf3_0_0b2 = lowPrio (callPackage ../development/libraries/protobuf/3.0.0-beta-2.nix { }); protobuf3_1 = callPackage ../development/libraries/protobuf/3.1.nix { }; protobuf3_2 = callPackage ../development/libraries/protobuf/3.2.nix { }; + protobuf3_3 = callPackage ../development/libraries/protobuf/3.3.nix { }; protobuf2_6 = callPackage ../development/libraries/protobuf/2.6.nix { }; protobuf2_5 = callPackage ../development/libraries/protobuf/2.5.nix { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 796bd1cb428e..69a1e4200b25 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16478,7 +16478,11 @@ in { }); protobuf = self.protobuf2_6; - # only required by tensorflow + protobuf3_3 = callPackage ../development/python-modules/protobuf.nix { + disabled = isPyPy; + doCheck = !isPy3k; + protobuf = pkgs.protobuf3_3; + }; protobuf3_2 = callPackage ../development/python-modules/protobuf.nix { disabled = isPyPy; doCheck = !isPy3k;