Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #57181 from FlorianFranzen/protobuf

protobuf: 3.6 -> 3.7

authored by Robert Schütz and committed by GitHub 90d166dc 96b2ddf0

+14 -7
+2 -2
pkgs/development/libraries/protobuf/3.6.nix
··· 1 1 { callPackage, ... }: 2 2 3 3 callPackage ./generic-v3.nix { 4 - version = "3.6.1"; 5 - sha256 = "1bg40miylzpy2wgbd7l7zjgmk43l12q38fq0zkn0vzy1lsj457sq"; 4 + version = "3.6.1.3"; 5 + sha256 = "1spj0d4flx6h3phxx3sg9r00yv734hina3365avkcz9brnm089c1"; 6 6 }
+6
pkgs/development/libraries/protobuf/3.7.nix
··· 1 + { callPackage, ... }: 2 + 3 + callPackage ./generic-v3.nix { 4 + version = "3.7.0"; 5 + sha256 = "0nlxif4cajqllsj2vdh7zp14ag48fb8lsa64zmq8625q9m2lcmdh"; 6 + }
+4 -4
pkgs/development/python-modules/protobuf/default.nix
··· 18 18 nativeBuildInputs = [ google_apputils pyext ]; 19 19 buildInputs = [ protobuf ]; 20 20 21 - patches = optional isPy37 22 - # Python 3.7 compatibility (remove when protobuf 3.7 is released) 21 + patches = optional (isPy37 && (versionOlder protobuf.version "3.6.1.2")) 22 + # Python 3.7 compatibility (not needed for protobuf >= 3.6.1.2) 23 23 (fetchpatch { 24 24 url = "https://github.com/protocolbuffers/protobuf/commit/0a59054c30e4f0ba10f10acfc1d7f3814c63e1a7.patch"; 25 25 sha256 = "09hw22y3423v8bbmc9xm07znwdxfbya6rp78d4zqw6fisdvjkqf1"; ··· 41 41 42 42 preBuild = '' 43 43 # Workaround for https://github.com/google/protobuf/issues/2895 44 - ${python}/bin/${python.executable} setup.py build 44 + ${python.interpreter} setup.py build 45 45 '' + optionalString (versionAtLeast protobuf.version "2.6.0") '' 46 - ${python}/bin/${python.executable} setup.py build_ext --cpp_implementation 46 + ${python.interpreter} setup.py build_ext --cpp_implementation 47 47 ''; 48 48 49 49 installFlags = optional (versionAtLeast protobuf.version "2.6.0")
+2 -1
pkgs/top-level/all-packages.nix
··· 12298 12298 buildPythonApplication click future six; 12299 12299 }; 12300 12300 12301 - protobuf = protobuf3_6; 12301 + protobuf = protobuf3_7; 12302 12302 12303 + protobuf3_7 = callPackage ../development/libraries/protobuf/3.7.nix { }; 12303 12304 protobuf3_6 = callPackage ../development/libraries/protobuf/3.6.nix { }; 12304 12305 protobuf3_5 = callPackage ../development/libraries/protobuf/3.5.nix { }; 12305 12306 protobuf3_4 = callPackage ../development/libraries/protobuf/3.4.nix { };