git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #29134 from abbradar/protobuf

Update protobuf and remove old versions

commit6589ee83c2264d88ea3277186e239039e8818aae authorFrederik Rietdijk <freddyrietdijk@fridh.nl> dateSat 9 Sep 2017, 09:27 (9 years ago) parent79770131f2a18d
23 files changed+54−136
pkgs/applications/audio/clementine/default.nix+12−8 pkgs/applications/misc/electrum-dash/default.nix+1−1 pkgs/applications/misc/electrum-ltc/default.nix+1−1 pkgs/applications/misc/electrum/default.nix+1−1 pkgs/applications/misc/ola/default.nix+3−3 pkgs/applications/networking/cluster/mesos/default.nix+3−3 pkgs/development/libraries/lightstep-tracer-cpp/default.nix+2−2 pkgs/development/libraries/opencv/3.x.nix+2−2 pkgs/development/libraries/protobuf/2.5.nix−10 pkgs/development/libraries/protobuf/2.6.nix−12 pkgs/development/libraries/protobuf/3.0.0-beta-2.nix−6 pkgs/development/libraries/protobuf/3.0.nix−6 pkgs/development/libraries/protobuf/3.2.nix−6 pkgs/development/libraries/protobuf/3.3.nix → pkgs/development/libraries/protobuf/3.4.nix+2−2 pkgs/development/libraries/protobufc/1.0.nix−11 pkgs/development/libraries/protobufc/1.1.nix−11 pkgs/development/python-modules/keepkey/default.nix+2−2 pkgs/development/python-modules/tensorflow/default.nix+2−2 pkgs/development/python-modules/trezor/default.nix+2−2 pkgs/tools/networking/envoy/default.nix+3−3 pkgs/tools/networking/mitmproxy/default.nix+1−1 pkgs/top-level/all-packages.nix+7−13 pkgs/top-level/python-packages.nix+10−28
pkgs/applications/audio/clementine/default.nix+12−8
@@ -54,19 +54,23 @@ let
5454 ++ stdenv.lib.optionals (withCD) [libcdio]
5555 ++ stdenv.lib.optionals (withCloud) [sparsehash];
5656
57+ postPatch = ''
58+ sed -i src/CMakeLists.txt \
59+ -e 's,-Werror,,g' \
60+ -e 's,-Wno-unknown-warning-option,,g' \
61+ -e 's,-Wno-unused-private-field,,g'
62+ sed -i CMakeLists.txt \
63+ -e 's,libprotobuf.a,protobuf,g'
64+ '';
65+
5766 free = stdenv.mkDerivation {
5867 name = "clementine-free-${version}";
59− inherit src patches nativeBuildInputs buildInputs;
68+ inherit src patches nativeBuildInputs buildInputs postPatch;
6069
6170 cmakeFlags = [ "-DUSE_SYSTEM_PROJECTM=ON" ];
6271
6372 enableParallelBuilding = true;
64− postPatch = ''
65− sed -i src/CMakeLists.txt \
66− -e 's,-Werror,,g' \
67− -e 's,-Wno-unknown-warning-option,,g' \
68− -e 's,-Wno-unused-private-field,,g'
69− '';
73+
7074 meta = with stdenv.lib; {
7175 homepage = http://www.clementine-player.org;
7276 description = "A multiplatform music player";
@@ -80,7 +84,7 @@ let
8084 blob = stdenv.mkDerivation {
8185 name = "clementine-blob-${version}";
8286 # Use the same patches and sources as Clementine
83− inherit src nativeBuildInputs;
87+ inherit src nativeBuildInputs postPatch;
8488
8589 patches = [
8690 ./clementine-spotify-blob.patch
pkgs/applications/misc/electrum-dash/default.nix+1−1
@@ -13,7 +13,7 @@ python2Packages.buildPythonApplication rec {
1313 dns
1414 ecdsa
1515 pbkdf2
16− protobuf3_2
16+ protobuf
1717 pyasn1
1818 pyasn1-modules
1919 pycrypto
pkgs/applications/misc/electrum-ltc/default.nix+1−1
@@ -20,7 +20,7 @@ python2Packages.buildPythonApplication rec {
2020 requests
2121 qrcode
2222 ltc_scrypt
23− protobuf3_2
23+ protobuf
2424 dns
2525 jsonrpclib
2626 ];
pkgs/applications/misc/electrum/default.nix+1−1
@@ -14,7 +14,7 @@ python2Packages.buildPythonApplication rec {
1414 ecdsa
1515 jsonrpclib
1616 pbkdf2
17− protobuf3_2
17+ protobuf
1818 pyaes
1919 pycrypto
2020 pyqt4
pkgs/applications/misc/ola/default.nix+3−3
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, autoreconfHook, bison, flex, pkgconfig
2−, libuuid, cppunit, protobuf, zlib, avahi, libmicrohttpd
2+, libuuid, cppunit, protobuf3_1, zlib, avahi, libmicrohttpd
33, perl, python3, python3Packages
44}:
55
@@ -15,8 +15,8 @@ stdenv.mkDerivation rec {
1515 };
1616
1717 nativeBuildInputs = [ autoreconfHook bison flex pkgconfig perl ];
18− buildInputs = [ libuuid cppunit protobuf zlib avahi libmicrohttpd python3 ];
19− propagatedBuildInputs = with python3Packages; [ protobuf3_2 numpy ];
18+ buildInputs = [ libuuid cppunit protobuf3_1 zlib avahi libmicrohttpd python3 ];
19+ propagatedBuildInputs = [ python3Packages.protobuf3_1 python3Packages.numpy ];
2020
2121 configureFlags = [ "--enable-python-libs" ];
2222
pkgs/applications/networking/cluster/mesos/default.nix+3−3
@@ -73,7 +73,7 @@ in stdenv.mkDerivation rec {
7373
7474 substituteInPlace 3rdparty/stout/Makefile.am \
7575 --replace "-lprotobuf" \
76− "${pythonProtobuf.protobuf.lib}/lib/libprotobuf.a"
76+ "${pythonProtobuf.protobuf}/lib/libprotobuf.so"
7777
7878 substituteInPlace 3rdparty/stout/include/stout/os/posix/fork.hpp \
7979 --subst-var-by sh ${bash}/bin/bash
@@ -101,7 +101,7 @@ in stdenv.mkDerivation rec {
101101
102102 substituteInPlace src/python/native_common/ext_modules.py.in \
103103 --replace "-lprotobuf" \
104− "${pythonProtobuf.protobuf.lib}/lib/libprotobuf.a"
104+ "${pythonProtobuf.protobuf}/lib/libprotobuf.so"
105105
106106 substituteInPlace src/slave/containerizer/mesos/isolators/gpu/volume.cpp \
107107 --subst-var-by cp ${coreutils}/bin/cp \
@@ -126,7 +126,7 @@ in stdenv.mkDerivation rec {
126126 substituteInPlace src/Makefile.am \
127127 --subst-var-by mavenRepo ${mavenRepo} \
128128 --replace "-lprotobuf" \
129− "${pythonProtobuf.protobuf.lib}/lib/libprotobuf.a"
129+ "${pythonProtobuf.protobuf}/lib/libprotobuf.so"
130130
131131 '' + lib.optionalString stdenv.isLinux ''
132132
pkgs/development/libraries/lightstep-tracer-cpp/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, lib, fetchFromGitHub, pkgconfig, protobuf3_2, automake
1+{ stdenv, lib, fetchFromGitHub, pkgconfig, protobuf, automake
22, autoreconfHook, zlib
33, enableGrpc ? false
44}:
@@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
3939 ];
4040
4141 buildInputs = [
42− protobuf3_2 zlib
42+ protobuf zlib
4343 ];
4444
4545 meta = with lib; {
pkgs/development/libraries/opencv/3.x.nix+2−2
@@ -8,7 +8,7 @@
88, enableJPEG2K ? true, jasper
99
1010, enableIpp ? false
11−, enableContrib ? false, protobuf3_1
11+, enableContrib ? false, protobuf
1212, enablePython ? false, pythonPackages
1313, enableGtk2 ? false, gtk2
1414, enableGtk3 ? false, gtk3
@@ -146,7 +146,7 @@ stdenv.mkDerivation rec {
146146 # tesseract & leptonica.
147147 ++ lib.optionals enableTesseract [ tesseract leptonica ]
148148 ++ lib.optionals enableCuda [ cudatoolkit gcc5 ]
149− ++ lib.optional buildContrib protobuf3_1
149+ ++ lib.optional buildContrib protobuf
150150 ++ lib.optionals stdenv.isDarwin [ AVFoundation Cocoa QTKit ];
151151
152152 propagatedBuildInputs = lib.optional enablePython pythonPackages.numpy;
pkgs/development/libraries/protobuf/2.5.nixdeleted−10
@@ -1,10 +0,0 @@
1−{ callPackage, fetchurl, ... } @ args:
2−
3−callPackage ./generic.nix (args // rec {
4− version = "2.5.0";
5− # make sure you test also -A pythonPackages.protobuf
6− src = fetchurl {
7− url = "http://protobuf.googlecode.com/files/${version}.tar.bz2";
8− sha256 = "0xxn9gxhvsgzz2sgmihzf6pf75clr05mqj6218camwrwajpcbgqk";
9− };
10−})
pkgs/development/libraries/protobuf/2.6.nixdeleted−12
@@ -1,12 +0,0 @@
1−{ callPackage, fetchFromGitHub, ... } @ args:
2−
3−callPackage ./generic.nix (args // rec {
4− version = "2.6.1";
5− # make sure you test also -A pythonPackages.protobuf
6− src = fetchFromGitHub {
7− owner = "google";
8− repo = "protobuf";
9− rev = "v${version}";
10− sha256 = "03df8zvx2sry3jz2x4pi3l32qyfqa7w8kj8jdbz30nzy0h7aa070";
11− };
12−})
pkgs/development/libraries/protobuf/3.0.0-beta-2.nixdeleted−6
@@ -1,6 +0,0 @@
1−{ callPackage, ... }:
2−
3−callPackage ./generic-v3.nix {
4− version = "3.0.0-beta-2";
5− sha256 = "0cbr1glgma5vakabsjwcs41pcnn8yphhn037l0zd121zb9gdaqc1";
6−}
pkgs/development/libraries/protobuf/3.0.nixdeleted−6
@@ -1,6 +0,0 @@
1−{ callPackage, ... }:
2−
3−callPackage ./generic-v3.nix {
4− version = "3.0.2";
5− sha256 = "16wmr1fgdqpf84fkq90cxvccfsxx7h0q0wzqkbg8vdjmka412g09";
6−}
pkgs/development/libraries/protobuf/3.2.nixdeleted−6
@@ -1,6 +0,0 @@
1−{ callPackage, lib, ... }:
2−
3−lib.overrideDerivation (callPackage ./generic-v3.nix {
4− version = "3.2.0";
5− sha256 = "120g0bg7ichry74allgmqnh7k0z2sdnrrfklb58b7szzn4zcdz14";
6−}) (attrs: { NIX_CFLAGS_COMPILE = "-Wno-error"; })
pkgs/development/libraries/protobuf/3.3.nix → pkgs/development/libraries/protobuf/3.4.nixrenamed+2−2
@@ -1,6 +1,6 @@
11{ callPackage, lib, ... }:
22
33lib.overrideDerivation (callPackage ./generic-v3.nix {
4− version = "3.3.0";
5− sha256 = "1258yz9flyyaswh3izv227kwnhwcxn4nwavdz9iznqmh24qmi59w";
4+ version = "3.4.0";
5+ sha256 = "0385j54kgr71h0cxh5vqr81qs57ack2g2k9mcdbq188v4ckjacyx";
66}) (attrs: { NIX_CFLAGS_COMPILE = "-Wno-error"; })
pkgs/development/libraries/protobufc/1.0.nixdeleted−11
@@ -1,11 +0,0 @@
1−{ callPackage, fetchFromGitHub, ... } @ args:
2−
3−callPackage ./generic.nix (args // rec {
4− version = "1.0.2";
5− src = fetchFromGitHub {
6− owner = "protobuf-c";
7− repo = "protobuf-c";
8− rev = "v${version}";
9− sha256 = "1harabw7qdgcmh098664xkcv8bkyach6i35sisc40yhvagr3fzsz";
10− };
11−})
pkgs/development/libraries/protobufc/1.1.nixdeleted−11
@@ -1,11 +0,0 @@
1−{ callPackage, fetchFromGitHub, ... } @ args:
2−
3−callPackage ./generic.nix (args // rec {
4− version = "1.1.1";
5− src = fetchFromGitHub {
6− owner = "protobuf-c";
7− repo = "protobuf-c";
8− rev = "v${version}";
9− sha256 = "0mdl2i87394l4zdvq2npsxq4zs8p7sqhqmbm2r380ngjs6zic6gw";
10− };
11−})
pkgs/development/python-modules/keepkey/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchPypi, buildPythonPackage, ecdsa
2−, mnemonic, protobuf3_2, hidapi }:
2+, mnemonic, protobuf, hidapi }:
33
44buildPythonPackage rec {
55 name = "${pname}-${version}";
@@ -11,7 +11,7 @@ buildPythonPackage rec {
1111 sha256 = "14d2r8dlx997ypgma2k8by90acw7i3l7hfq4gar9lcka0lqfj714";
1212 };
1313
14− propagatedBuildInputs = [ protobuf3_2 hidapi ];
14+ propagatedBuildInputs = [ protobuf hidapi ];
1515
1616 buildInputs = [ ecdsa mnemonic ];
1717
pkgs/development/python-modules/tensorflow/default.nix+2−2
@@ -8,7 +8,7 @@
88, linuxPackages ? null
99, numpy
1010, six
11−, protobuf3_2
11+, protobuf
1212, swig
1313, werkzeug
1414, mock
@@ -94,7 +94,7 @@ buildPythonPackage rec {
9494 );
9595
9696 propagatedBuildInputs = with stdenv.lib;
97− [ numpy six protobuf3_2 swig werkzeug mock ]
97+ [ numpy six protobuf swig werkzeug mock ]
9898 ++ optionals cudaSupport [ cudatoolkit cudnn stdenv.cc ];
9999
100100 # Note that we need to run *after* the fixup phase because the
pkgs/development/python-modules/trezor/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ lib, fetchPypi, buildPythonPackage, protobuf3_2, hidapi, ecdsa, mnemonic
1+{ lib, fetchPypi, buildPythonPackage, protobuf, hidapi, ecdsa, mnemonic
22, requests
33}:
44
@@ -12,7 +12,7 @@ buildPythonPackage rec {
1212 sha256 = "6bdb69fc125ba705854e21163be6c7da3aa17c2a3a84f40b6d8a3f6e4a8cb314";
1313 };
1414
15− propagatedBuildInputs = [ protobuf3_2 hidapi requests ];
15+ propagatedBuildInputs = [ protobuf hidapi requests ];
1616
1717 buildInputs = [ ecdsa mnemonic ];
1818
pkgs/tools/networking/envoy/default.nix+3−3
@@ -1,6 +1,6 @@
11{ stdenv, lib, fetchFromGitHub, pkgconfig, bazel, c-ares, backward-cpp
22, libevent, gtest, gperftools, http-parser, lightstep-tracer-cpp
3−, nghttp2, protobuf3_2, tclap, rapidjson, spdlog, boringssl, buildEnv
3+, nghttp2, protobuf, tclap, rapidjson, spdlog, boringssl, buildEnv
44}:
55
66let
@@ -85,7 +85,7 @@ let
8585 };
8686
8787 protobuf = {
88− pkg = protobuf3_2;
88+ pkg = protobuf;
8989 srcs = ''glob(["lib/libproto*.so"])'';
9090 hdrs = ''glob(["include/google/protobuf/**/*.h"])'';
9191 includes = ''["include"]'';
@@ -201,7 +201,7 @@ let
201201 http-parser
202202 lightstep-tracer-cpp
203203 nghttp2
204− protobuf3_2
204+ protobuf
205205 tclap
206206 rapidjson
207207 spdlog
pkgs/tools/networking/mitmproxy/default.nix+1−1
@@ -63,7 +63,7 @@ in p.pkgs.buildPythonPackage rec {
6363 ];
6464
6565 buildInputs = with p.pkgs; [
66− beautifulsoup4 flask pytz pytest pytestrunner protobuf3_2 glibcLocales
66+ beautifulsoup4 flask pytz pytest pytestrunner protobuf glibcLocales
6767 ];
6868
6969 meta = with stdenv.lib; {
pkgs/top-level/all-packages.nix+7−13
@@ -1459,7 +1459,7 @@ with pkgs;
14591459 clangStdenv = libcxxStdenv; # workaround for https://github.com/NixOS/nixpkgs/issues/28223
14601460 python = python2;
14611461 inherit (python2Packages) gyp;
1462− protobuf = protobuf3_2.overrideDerivation (oldAttrs: { stdenv = clangStdenv; });
1462+ protobuf = pkgs.protobuf.overrideDerivation (oldAttrs: { stdenv = clangStdenv; });
14631463 };
14641464
14651465 table = callPackage ../tools/inputmethods/ibus-engines/ibus-table {
@@ -1946,7 +1946,7 @@ with pkgs;
19461946 clangStdenv = libcxxStdenv; # workaround for https://github.com/NixOS/nixpkgs/issues/28223
19471947 python = python2;
19481948 inherit (python2Packages) gyp;
1949− protobuf = protobuf3_2.overrideDerivation (oldAttrs: { stdenv = clangStdenv; });
1949+ protobuf = pkgs.protobuf.overrideDerivation (oldAttrs: { stdenv = clangStdenv; });
19501950 };
19511951
19521952 table-other = callPackage ../tools/inputmethods/fcitx-engines/fcitx-table-other { };
@@ -6360,7 +6360,7 @@ with pkgs;
63606360 mesos = callPackage ../applications/networking/cluster/mesos {
63616361 sasl = cyrus_sasl;
63626362 inherit (pythonPackages) python boto setuptools wrapPython;
6363− pythonProtobuf = pythonPackages.protobuf2_6;
6363+ pythonProtobuf = pythonPackages.protobuf;
63646364 perf = linuxPackages.perf;
63656365 };
63666366
@@ -9995,17 +9995,11 @@ with pkgs;
99959995
99969996 postgis = callPackage ../development/libraries/postgis { };
99979997
9998− protobuf = protobuf2_6;
9999− protobuf3_0 = lowPrio (callPackage ../development/libraries/protobuf/3.0.nix { });
9998+ protobuf = callPackage ../development/libraries/protobuf/3.4.nix { };
9999+
1000010000 protobuf3_1 = callPackage ../development/libraries/protobuf/3.1.nix { };
10001− protobuf3_2 = callPackage ../development/libraries/protobuf/3.2.nix { };
10002− protobuf3_3 = callPackage ../development/libraries/protobuf/3.3.nix { };
10003− protobuf2_6 = callPackage ../development/libraries/protobuf/2.6.nix { };
10004− protobuf2_5 = callPackage ../development/libraries/protobuf/2.5.nix { };
10005−
10006− protobufc = protobufc1_1;
10007− protobufc1_1 = callPackage ../development/libraries/protobufc/1.1.nix { };
10008− protobufc1_0 = callPackage ../development/libraries/protobufc/1.0.nix { };
10001+
10002+ protobufc = callPackage ../development/libraries/protobufc/1.3.nix { };
1000910003
1001010004 flatbuffers = callPackage ../development/libraries/flatbuffers { };
1001110005
pkgs/top-level/python-packages.nix+10−28
@@ -227,9 +227,7 @@ in {
227227
228228 pycryptodomex = callPackage ../development/python-modules/pycryptodomex { };
229229
230− PyChromecast = callPackage ../development/python-modules/pychromecast {
231− protobuf = self.protobuf3_2;
232− };
230+ PyChromecast = callPackage ../development/python-modules/pychromecast { };
233231
234232 pyexiv2 = if (!isPy3k) then callPackage ../development/python-modules/pyexiv2 {} else throw "pyexiv2 not supported for interpreter ${python.executable}";
235233
@@ -5901,7 +5899,7 @@ in {
59015899 validictory
59025900 decorator
59035901 mutagen
5904− protobuf3_0
5902+ protobuf
59055903 setuptools
59065904 requests
59075905 dateutil
@@ -7521,7 +7519,7 @@ in {
75217519 sha256 = "09bf5gfip9x2wr0ij43p39ac6z2iqzn7kgpi2jjbwpnhs0vwkycs";
75227520 };
75237521
7524− propagatedBuildInputs = with self; [ python-axolotl-curve25519 protobuf3_0 pycrypto ];
7522+ propagatedBuildInputs = with self; [ python-axolotl-curve25519 protobuf pycrypto ];
75257523 # IV == 0 in tests is not supported by pycrytpodom (our pycrypto drop-in)
75267524 doCheck = !isPy3k;
75277525
@@ -16327,30 +16325,16 @@ in {
1632716325
1632816326 });
1632916327
16330− protobuf = self.protobuf2_6;
16331− protobuf3_3 = callPackage ../development/python-modules/protobuf.nix {
16332− disabled = isPyPy;
16333− doCheck = !isPy3k;
16334− protobuf = pkgs.protobuf3_3;
16335− };
16336− protobuf3_2 = callPackage ../development/python-modules/protobuf.nix {
16328+ protobuf = callPackage ../development/python-modules/protobuf.nix {
1633716329 disabled = isPyPy;
1633816330 doCheck = !isPy3k;
16339− protobuf = pkgs.protobuf3_2;
16331+ protobuf = pkgs.protobuf;
1634016332 };
16341− protobuf3_0 = callPackage ../development/python-modules/protobuf.nix {
16333+
16334+ protobuf3_1 = callPackage ../development/python-modules/protobuf.nix {
1634216335 disabled = isPyPy;
1634316336 doCheck = !isPy3k;
16344− protobuf = pkgs.protobuf3_0;
16345− };
16346− protobuf2_6 = callPackage ../development/python-modules/protobuf.nix {
16347− disabled = isPy3k || isPyPy;
16348− doCheck = false;
16349− protobuf = pkgs.protobuf2_6;
16350− };
16351− protobuf2_5 = callPackage ../development/python-modules/protobuf.nix {
16352− disabled = isPy3k || isPyPy;
16353− protobuf = pkgs.protobuf2_5;
16337+ protobuf = pkgs.protobuf3_1;
1635416338 };
1635516339
1635616340 psd-tools = callPackage ../development/python-modules/psd-tools { };
@@ -23876,9 +23860,7 @@ EOF
2387623860 inherit (pkgs) libasyncns pkgconfig;
2387723861 };
2387823862
23879− libarcus = callPackage ../development/python-modules/libarcus {
23880− protobuf = self.protobuf3_0;
23881− };
23863+ libarcus = callPackage ../development/python-modules/libarcus { };
2388223864
2388323865 pybrowserid = buildPythonPackage rec {
2388423866 name = "PyBrowserID-${version}";
@@ -24160,7 +24142,7 @@ EOF
2416024142 '';
2416124143
2416224144 buildInputs = with self; [ nose ];
24163− propagatedBuildInputs = with self; [ noise numpy pyplatec protobuf3_2 purepng argparse h5py gdal ];
24145+ propagatedBuildInputs = with self; [ noise numpy pyplatec protobuf purepng argparse h5py gdal ];
2416424146
2416524147 prePatch = ''
2416624148 substituteInPlace setup.py \