tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
protobuf: use new package definition only
Aaron Jheng
2 years ago
80aaa46d
ee14e5df
+65
-205
15 changed files
expand all
collapse all
unified
split
pkgs
applications
kde
marble.nix
networking
localproxy
default.nix
by-name
ju
justbuild
package.nix
development
libraries
onnxruntime
default.nix
opencv
3.x.nix
4.x.nix
protobuf
3.21.nix
3.23.nix
3.24.nix
generic-v3-cmake.nix
generic.nix
servers
redpanda
server.nix
top-level
aliases.nix
all-packages.nix
python-packages.nix
+2
-2
pkgs/applications/kde/marble.nix
···
2
, extra-cmake-modules, kdoctools
3
, qtscript, qtsvg, qtquickcontrols, qtwebengine
4
, krunner, shared-mime-info, kparts, knewstuff
5
-
, gpsd, perl, protobuf3_21
6
}:
7
8
mkDerivation {
···
15
outputs = [ "out" "dev" ];
16
nativeBuildInputs = [ extra-cmake-modules kdoctools perl ];
17
propagatedBuildInputs = [
18
-
protobuf3_21 qtscript qtsvg qtquickcontrols qtwebengine shared-mime-info krunner kparts
19
knewstuff gpsd
20
];
21
preConfigure = ''
···
2
, extra-cmake-modules, kdoctools
3
, qtscript, qtsvg, qtquickcontrols, qtwebengine
4
, krunner, shared-mime-info, kparts, knewstuff
5
+
, gpsd, perl, protobuf_21
6
}:
7
8
mkDerivation {
···
15
outputs = [ "out" "dev" ];
16
nativeBuildInputs = [ extra-cmake-modules kdoctools perl ];
17
propagatedBuildInputs = [
18
+
protobuf_21 qtscript qtsvg qtquickcontrols qtwebengine shared-mime-info krunner kparts
19
knewstuff gpsd
20
];
21
preConfigure = ''
+2
-2
pkgs/applications/networking/localproxy/default.nix
···
3
, fetchFromGitHub
4
, cmake
5
, openssl
6
-
, protobuf3_21
7
, catch2
8
, boost181
9
, icu
10
}:
11
let
12
boost = boost181.override { enableStatic = true; };
13
-
protobuf = protobuf3_21.override { enableShared = false; };
14
in
15
stdenv.mkDerivation (finalAttrs: {
16
pname = "localproxy";
···
3
, fetchFromGitHub
4
, cmake
5
, openssl
6
+
, protobuf_21
7
, catch2
8
, boost181
9
, icu
10
}:
11
let
12
boost = boost181.override { enableStatic = true; };
13
+
protobuf = protobuf_21.override { enableShared = false; };
14
in
15
stdenv.mkDerivation (finalAttrs: {
16
pname = "localproxy";
+3
-3
pkgs/by-name/ju/justbuild/package.nix
···
11
openssl,
12
13
pkg-config,
14
-
protobuf3_23,
15
grpc,
16
pandoc,
17
python3,
···
87
# For future updates: The currently used version can be found in the file
88
# etc/repos.json: https://github.com/just-buildsystem/justbuild/blob/master/etc/repos.json
89
# under the key .repositories.protobuf
90
-
protobuf3_23
91
python3
92
];
93
94
postPatch = ''
95
sed -ie 's|\./bin/just-mr.py|${python3}/bin/python3 ./bin/just-mr.py|' bin/bootstrap.py
96
sed -ie 's|#!/usr/bin/env python3|#!${python3}/bin/python3|' bin/parallel-bootstrap-traverser.py
97
-
jq '.repositories.protobuf.pkg_bootstrap.local_path = "${protobuf3_23}"' etc/repos.json > etc/repos.json.patched
98
mv etc/repos.json.patched etc/repos.json
99
jq '.repositories.com_github_grpc_grpc.pkg_bootstrap.local_path = "${grpc}"' etc/repos.json > etc/repos.json.patched
100
mv etc/repos.json.patched etc/repos.json
···
11
openssl,
12
13
pkg-config,
14
+
protobuf_23,
15
grpc,
16
pandoc,
17
python3,
···
87
# For future updates: The currently used version can be found in the file
88
# etc/repos.json: https://github.com/just-buildsystem/justbuild/blob/master/etc/repos.json
89
# under the key .repositories.protobuf
90
+
protobuf_23
91
python3
92
];
93
94
postPatch = ''
95
sed -ie 's|\./bin/just-mr.py|${python3}/bin/python3 ./bin/just-mr.py|' bin/bootstrap.py
96
sed -ie 's|#!/usr/bin/env python3|#!${python3}/bin/python3|' bin/parallel-bootstrap-traverser.py
97
+
jq '.repositories.protobuf.pkg_bootstrap.local_path = "${protobuf_23}"' etc/repos.json > etc/repos.json.patched
98
mv etc/repos.json.patched etc/repos.json
99
jq '.repositories.com_github_grpc_grpc.pkg_bootstrap.local_path = "${grpc}"' etc/repos.json > etc/repos.json.patched
100
mv etc/repos.json.patched etc/repos.json
+3
-3
pkgs/development/libraries/onnxruntime/default.nix
···
17
, microsoft-gsl
18
, iconv
19
, gtest
20
-
, protobuf3_21
21
, pythonSupport ? true
22
}:
23
···
92
cmake
93
pkg-config
94
python3Packages.python
95
-
protobuf3_21
96
] ++ lib.optionals pythonSupport (with python3Packages; [
97
setuptools
98
wheel
···
177
'';
178
179
passthru = {
180
-
protobuf = protobuf3_21;
181
tests = lib.optionalAttrs pythonSupport {
182
python = python3Packages.onnxruntime;
183
};
···
17
, microsoft-gsl
18
, iconv
19
, gtest
20
+
, protobuf_21
21
, pythonSupport ? true
22
}:
23
···
92
cmake
93
pkg-config
94
python3Packages.python
95
+
protobuf_21
96
] ++ lib.optionals pythonSupport (with python3Packages; [
97
setuptools
98
wheel
···
177
'';
178
179
passthru = {
180
+
protobuf = protobuf_21;
181
tests = lib.optionalAttrs pythonSupport {
182
python = python3Packages.onnxruntime;
183
};
+2
-2
pkgs/development/libraries/opencv/3.x.nix
···
2
, fetchFromGitHub
3
, fetchpatch
4
, cmake, pkg-config, unzip, zlib, pcre, hdf5
5
-
, glog, boost, gflags, protobuf3_21
6
, config
7
8
, enableJPEG ? true, libjpeg
···
186
187
buildInputs =
188
[ zlib pcre hdf5 glog boost gflags ]
189
-
++ lib.optional useSystemProtobuf protobuf3_21
190
++ lib.optional enablePython pythonPackages.python
191
++ lib.optional enableGtk2 gtk2
192
++ lib.optional enableGtk3 gtk3
···
2
, fetchFromGitHub
3
, fetchpatch
4
, cmake, pkg-config, unzip, zlib, pcre, hdf5
5
+
, glog, boost, gflags, protobuf_21
6
, config
7
8
, enableJPEG ? true, libjpeg
···
186
187
buildInputs =
188
[ zlib pcre hdf5 glog boost gflags ]
189
+
++ lib.optional useSystemProtobuf protobuf_21
190
++ lib.optional enablePython pythonPackages.python
191
++ lib.optional enableGtk2 gtk2
192
++ lib.optional enableGtk3 gtk3
+3
-3
pkgs/development/libraries/opencv/4.x.nix
···
11
, hdf5
12
, boost
13
, gflags
14
-
, protobuf3_21
15
, config
16
, ocl-icd
17
, buildPackages
···
317
echo '"(build info elided)"' > modules/core/version_string.inc
318
'';
319
320
-
buildInputs = [ zlib pcre boost gflags protobuf3_21 ]
321
++ lib.optional enablePython pythonPackages.python
322
++ lib.optional (stdenv.buildPlatform == stdenv.hostPlatform) hdf5
323
++ lib.optional enableGtk2 gtk2
···
369
"-DOPENCV_GENERATE_PKGCONFIG=ON"
370
"-DWITH_OPENMP=ON"
371
"-DBUILD_PROTOBUF=OFF"
372
-
"-DProtobuf_PROTOC_EXECUTABLE=${lib.getExe buildPackages.protobuf3_21}"
373
"-DPROTOBUF_UPDATE_FILES=ON"
374
"-DOPENCV_ENABLE_NONFREE=${printEnabled enableUnfree}"
375
"-DBUILD_TESTS=${printEnabled runAccuracyTests}"
···
11
, hdf5
12
, boost
13
, gflags
14
+
, protobuf_21
15
, config
16
, ocl-icd
17
, buildPackages
···
317
echo '"(build info elided)"' > modules/core/version_string.inc
318
'';
319
320
+
buildInputs = [ zlib pcre boost gflags protobuf_21 ]
321
++ lib.optional enablePython pythonPackages.python
322
++ lib.optional (stdenv.buildPlatform == stdenv.hostPlatform) hdf5
323
++ lib.optional enableGtk2 gtk2
···
369
"-DOPENCV_GENERATE_PKGCONFIG=ON"
370
"-DWITH_OPENMP=ON"
371
"-DBUILD_PROTOBUF=OFF"
372
+
"-DProtobuf_PROTOC_EXECUTABLE=${lib.getExe buildPackages.protobuf_21}"
373
"-DPROTOBUF_UPDATE_FILES=ON"
374
"-DOPENCV_ENABLE_NONFREE=${printEnabled enableUnfree}"
375
"-DBUILD_TESTS=${printEnabled runAccuracyTests}"
-6
pkgs/development/libraries/protobuf/3.21.nix
···
1
-
{ callPackage, ... } @ args:
2
-
3
-
callPackage ./generic-v3-cmake.nix ({
4
-
version = "3.21.12";
5
-
sha256 = "sha256-VZQEFHq17UsTH5CZZOcJBKiScGV2xPJ/e6gkkVliRCU=";
6
-
} // args)
···
0
0
0
0
0
0
-6
pkgs/development/libraries/protobuf/3.23.nix
···
1
-
{ callPackage, ... } @ args:
2
-
3
-
callPackage ./generic-v3-cmake.nix ({
4
-
version = "3.23.4";
5
-
sha256 = "sha256-eI+mrsZAOLEsdyTC3B+K+GjD3r16CmPx1KJ2KhCwFdg=";
6
-
} // args)
···
0
0
0
0
0
0
-6
pkgs/development/libraries/protobuf/3.24.nix
···
1
-
{ callPackage, ... } @ args:
2
-
3
-
callPackage ./generic-v3-cmake.nix ({
4
-
version = "3.24.3";
5
-
sha256 = "sha256-wXGQW/o674DeLXX2IlyZskl5OrBcSRptOMoJqLQGm94=";
6
-
} // args)
···
0
0
0
0
0
0
-116
pkgs/development/libraries/protobuf/generic-v3-cmake.nix
···
1
-
# The cmake version of this build is meant to enable both cmake and .pc being exported
2
-
# this is important because grpc exports a .cmake file which also expects for protobuf
3
-
# to have been exported through cmake as well.
4
-
{ lib
5
-
, stdenv
6
-
, abseil-cpp
7
-
, buildPackages
8
-
, cmake
9
-
, fetchFromGitHub
10
-
, fetchpatch
11
-
, gtest
12
-
, zlib
13
-
, version
14
-
, sha256
15
-
16
-
# downstream dependencies
17
-
, python3
18
-
, grpc
19
-
, enableShared ? !stdenv.hostPlatform.isStatic
20
-
21
-
, ...
22
-
}:
23
-
24
-
stdenv.mkDerivation (finalAttrs: {
25
-
pname = "protobuf";
26
-
inherit version;
27
-
28
-
src = fetchFromGitHub {
29
-
owner = "protocolbuffers";
30
-
repo = "protobuf";
31
-
rev = "v${version}";
32
-
inherit sha256;
33
-
};
34
-
35
-
postPatch = lib.optionalString stdenv.isDarwin ''
36
-
substituteInPlace src/google/protobuf/testing/googletest.cc \
37
-
--replace 'tmpnam(b)' '"'$TMPDIR'/foo"'
38
-
'';
39
-
40
-
patches = lib.optionals (lib.versionOlder version "3.22") [
41
-
# fix protobuf-targets.cmake installation paths, and allow for CMAKE_INSTALL_LIBDIR to be absolute
42
-
# https://github.com/protocolbuffers/protobuf/pull/10090
43
-
(fetchpatch {
44
-
url = "https://github.com/protocolbuffers/protobuf/commit/a7324f88e92bc16b57f3683403b6c993bf68070b.patch";
45
-
sha256 = "sha256-SmwaUjOjjZulg/wgNmR/F5b8rhYA2wkKAjHIOxjcQdQ=";
46
-
})
47
-
] ++ lib.optionals stdenv.hostPlatform.isStatic [
48
-
./static-executables-have-no-rpath.patch
49
-
];
50
-
51
-
nativeBuildInputs =
52
-
let
53
-
protobufVersion = "${lib.versions.major version}_${lib.versions.minor version}";
54
-
in
55
-
[
56
-
cmake
57
-
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
58
-
# protoc of the same version must be available for build. For non-cross builds, it's able to
59
-
# re-use the executable generated as part of the build
60
-
buildPackages."protobuf${protobufVersion}"
61
-
];
62
-
63
-
buildInputs = [
64
-
gtest
65
-
zlib
66
-
];
67
-
68
-
propagatedBuildInputs = [
69
-
abseil-cpp
70
-
];
71
-
72
-
strictDeps = true;
73
-
74
-
cmakeDir = if lib.versionOlder version "3.22" then "../cmake" else null;
75
-
cmakeFlags = [
76
-
"-Dprotobuf_USE_EXTERNAL_GTEST=ON"
77
-
"-Dprotobuf_ABSL_PROVIDER=package"
78
-
] ++ lib.optionals enableShared [
79
-
"-Dprotobuf_BUILD_SHARED_LIBS=ON"
80
-
]
81
-
# Tests fail to build on 32-bit platforms; fixed in 3.22
82
-
# https://github.com/protocolbuffers/protobuf/issues/10418
83
-
++ lib.optionals (stdenv.targetPlatform.is32bit && lib.versionOlder version "3.22") [
84
-
"-Dprotobuf_BUILD_TESTS=OFF"
85
-
];
86
-
87
-
# FIXME: investigate. 3.24 and 3.23 have different errors.
88
-
# At least some of it is not reproduced on some other machine; example:
89
-
# https://hydra.nixos.org/build/235677717/nixlog/4/tail
90
-
doCheck = !(stdenv.isDarwin && lib.versionAtLeast version "3.23");
91
-
92
-
passthru = {
93
-
tests = {
94
-
pythonProtobuf = python3.pkgs.protobuf.override (_: {
95
-
protobuf = finalAttrs.finalPackage;
96
-
});
97
-
inherit grpc;
98
-
};
99
-
100
-
inherit abseil-cpp;
101
-
};
102
-
103
-
meta = {
104
-
description = "Google's data interchange format";
105
-
longDescription = ''
106
-
Protocol Buffers are a way of encoding structured data in an efficient
107
-
yet extensible format. Google uses Protocol Buffers for almost all of
108
-
its internal RPC protocols and file formats.
109
-
'';
110
-
license = lib.licenses.bsd3;
111
-
platforms = lib.platforms.all;
112
-
homepage = "https://protobuf.dev/";
113
-
maintainers = with lib.maintainers; [ jonringer ];
114
-
mainProgram = "protoc";
115
-
};
116
-
})
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
+2
-2
pkgs/development/libraries/protobuf/generic.nix
···
29
owner = "protocolbuffers";
30
repo = "protobuf";
31
rev = "v${version}";
32
-
sha256 = hash;
33
};
34
35
postPatch = lib.optionalString stdenv.isDarwin ''
···
42
# https://github.com/protocolbuffers/protobuf/pull/10090
43
(fetchpatch {
44
url = "https://github.com/protocolbuffers/protobuf/commit/a7324f88e92bc16b57f3683403b6c993bf68070b.patch";
45
-
sha256 = "sha256-SmwaUjOjjZulg/wgNmR/F5b8rhYA2wkKAjHIOxjcQdQ=";
46
})
47
] ++ lib.optionals stdenv.hostPlatform.isStatic [
48
./static-executables-have-no-rpath.patch
···
29
owner = "protocolbuffers";
30
repo = "protobuf";
31
rev = "v${version}";
32
+
inherit hash;
33
};
34
35
postPatch = lib.optionalString stdenv.isDarwin ''
···
42
# https://github.com/protocolbuffers/protobuf/pull/10090
43
(fetchpatch {
44
url = "https://github.com/protocolbuffers/protobuf/commit/a7324f88e92bc16b57f3683403b6c993bf68070b.patch";
45
+
hash = "sha256-SmwaUjOjjZulg/wgNmR/F5b8rhYA2wkKAjHIOxjcQdQ=";
46
})
47
] ++ lib.optionals stdenv.hostPlatform.isStatic [
48
./static-executables-have-no-rpath.patch
+2
-2
pkgs/servers/redpanda/server.nix
···
16
, p11-kit
17
, pkg-config
18
, procps
19
-
, protobuf3_21
20
, python3
21
, snappy
22
, src
···
100
dpdk
101
hdr-histogram
102
p11-kit
103
-
protobuf3_21
104
rapidjson
105
seastar
106
snappy
···
16
, p11-kit
17
, pkg-config
18
, procps
19
+
, protobuf_21
20
, python3
21
, snappy
22
, src
···
100
dpdk
101
hdr-histogram
102
p11-kit
103
+
protobuf_21
104
rapidjson
105
seastar
106
snappy
+3
pkgs/top-level/aliases.nix
···
689
prometheus-speedtest-exporter = throw "prometheus-speedtest-exporter was removed as unmaintained"; # Added 2023-07-31
690
protobuf3_17 = throw "protobuf3_17 does not receive updates anymore and has been removed"; # Added 2023-05-21
691
protobuf3_19 = throw "protobuf3_19 does not receive updates anymore and has been removed"; # Added 2023-10-01
0
0
0
692
protonup = protonup-ng; # Added 2022-11-06
693
proxmark3-rrg = proxmark3; # Added 2023-07-25
694
proxmark3-unstable = throw "removed in favor of rfidresearchgroup fork"; # Added 2023-07-25
···
689
prometheus-speedtest-exporter = throw "prometheus-speedtest-exporter was removed as unmaintained"; # Added 2023-07-31
690
protobuf3_17 = throw "protobuf3_17 does not receive updates anymore and has been removed"; # Added 2023-05-21
691
protobuf3_19 = throw "protobuf3_19 does not receive updates anymore and has been removed"; # Added 2023-10-01
692
+
protobuf3_24 = protobuf_24;
693
+
protobuf3_23 = protobuf_23;
694
+
protobuf3_21 = protobuf_21;
695
protonup = protonup-ng; # Added 2022-11-06
696
proxmark3-rrg = proxmark3; # Added 2023-07-25
697
proxmark3-unstable = throw "removed in favor of rfidresearchgroup fork"; # Added 2023-07-25
+41
-50
pkgs/top-level/all-packages.nix
···
770
protoc-gen-go-vtproto = callPackage ../development/tools/protoc-gen-go-vtproto { };
771
772
protoc-gen-grpc-web = callPackage ../development/tools/protoc-gen-grpc-web {
773
-
protobuf = protobuf3_21;
774
};
775
776
protoc-gen-connect-go = callPackage ../development/tools/protoc-gen-connect-go { };
···
1094
antlr = antlr4_10;
1095
boost = boost177; # Configure checks for specific version.
1096
icu = icu69;
1097
-
protobuf = protobuf3_21;
1098
};
1099
1100
broadlink-cli = callPackage ../tools/misc/broadlink-cli { };
···
2672
gensgs = pkgsi686Linux.callPackage ../applications/emulators/gens-gs { };
2673
2674
goldberg-emu = callPackage ../applications/emulators/goldberg-emu {
2675
-
protobuf = protobuf3_21;
2676
};
2677
2678
gopsuinfo = callPackage ../tools/system/gopsuinfo { };
···
4172
amoco = callPackage ../tools/security/amoco { };
4173
4174
anbox = callPackage ../os-specific/linux/anbox {
4175
-
protobuf = protobuf3_21;
4176
};
4177
4178
androidenv = callPackage ../development/mobile/androidenv { };
···
4728
common-licenses = callPackage ../data/misc/common-licenses { };
4729
4730
compactor = callPackage ../applications/networking/compactor {
4731
-
protobuf = protobuf3_21;
4732
};
4733
4734
consul = callPackage ../servers/consul { };
···
5542
ghdorker = callPackage ../tools/security/ghdorker { };
5543
5544
ghidra = darwin.apple_sdk_11_0.callPackage ../tools/security/ghidra/build.nix {
5545
-
protobuf = protobuf3_21;
5546
};
5547
5548
ghidra-bin = callPackage ../tools/security/ghidra { };
···
6862
clementine = libsForQt5.callPackage ../applications/audio/clementine {
6863
gst_plugins =
6864
with gst_all_1; [ gst-plugins-base gst-plugins-good gst-plugins-ugly gst-libav ];
6865
-
protobuf = protobuf3_21;
6866
};
6867
6868
mellowplayer = libsForQt5.callPackage ../applications/audio/mellowplayer { };
···
7065
7066
mozc = callPackage ../tools/inputmethods/ibus-engines/ibus-mozc {
7067
stdenv = clangStdenv;
7068
-
protobuf = pkgs.protobuf3_21.overrideDerivation (_: { stdenv = clangStdenv; });
7069
};
7070
7071
rime = callPackage ../tools/inputmethods/ibus-engines/ibus-rime { };
···
10261
10262
netdata = callPackage ../tools/system/netdata {
10263
inherit (darwin.apple_sdk.frameworks) CoreFoundation IOKit;
10264
-
protobuf = protobuf3_21;
10265
};
10266
# Exposed here so the bots can auto-upgrade it
10267
netdata-go-plugins = callPackage ../tools/system/netdata/go.d.plugin.nix { };
···
11402
nq = callPackage ../tools/system/nq { };
11403
11404
nsjail = callPackage ../tools/security/nsjail {
11405
-
protobuf = protobuf3_21;
11406
};
11407
11408
nss_pam_ldapd = callPackage ../tools/networking/nss-pam-ldapd { };
···
11534
oh-my-zsh = callPackage ../shells/zsh/oh-my-zsh { };
11535
11536
ola = callPackage ../applications/misc/ola {
11537
-
protobuf = protobuf3_21;
11538
};
11539
11540
olive-editor = qt6Packages.callPackage ../applications/video/olive-editor {
···
11811
p3x-onenote = callPackage ../applications/office/p3x-onenote { };
11812
11813
p4c = callPackage ../development/compilers/p4c {
11814
-
protobuf = protobuf3_21;
11815
};
11816
11817
p7zip = callPackage ../tools/archivers/p7zip { };
···
15204
zasm = callPackage ../development/compilers/zasm { };
15205
15206
zbackup = callPackage ../tools/backup/zbackup {
15207
-
protobuf = protobuf3_21;
15208
};
15209
15210
zbar = libsForQt5.callPackage ../tools/graphics/zbar {
···
20139
};
20140
20141
spoofer = callPackage ../tools/networking/spoofer {
20142
-
protobuf = protobuf3_21;
20143
};
20144
20145
spoofer-gui = callPackage ../tools/networking/spoofer {
20146
withGUI = true;
20147
-
protobuf = protobuf3_21;
20148
};
20149
20150
spooles = callPackage ../development/libraries/science/math/spooles { };
···
20879
cmrt = callPackage ../development/libraries/cmrt { };
20880
20881
codecserver = callPackage ../applications/audio/codecserver {
20882
-
protobuf = protobuf3_21;
20883
};
20884
20885
coeurl = callPackage ../development/libraries/coeurl { };
···
21391
gallia = callPackage ../tools/security/gallia { };
21392
21393
gamenetworkingsockets = callPackage ../development/libraries/gamenetworkingsockets {
21394
-
protobuf = protobuf3_21;
21395
};
21396
21397
game-music-emu = callPackage ../development/libraries/audio/game-music-emu { };
···
23415
libptytty = callPackage ../development/libraries/libptytty { };
23416
23417
libpulsar = callPackage ../development/libraries/libpulsar {
23418
-
protobuf = protobuf3_21;
23419
};
23420
23421
libpwquality = callPackage ../development/libraries/libpwquality {
···
23824
lightspark = callPackage ../misc/lightspark { };
23825
23826
lightstep-tracer-cpp = callPackage ../development/libraries/lightstep-tracer-cpp {
23827
-
protobuf = protobuf3_21;
23828
};
23829
23830
ligolo-ng = callPackage ../tools/networking/ligolo-ng { };
···
24589
24590
prospector = callPackage ../development/tools/prospector { };
24591
24592
-
protobuf = protobuf3_24;
24593
24594
-
# C++ 4.24 runtime, Python 4.24 runtime
24595
protobuf_24 = callPackage ../development/libraries/protobuf/24.nix { };
24596
-
# C++ 4.23 runtime, Python 4.23 runtime
24597
protobuf_23 = callPackage ../development/libraries/protobuf/23.nix { };
24598
-
# C++ 3.21 runtime, Python 4.21 runtime
24599
protobuf_21 = callPackage ../development/libraries/protobuf/21.nix {
24600
abseil-cpp = abseil-cpp_202103;
24601
};
24602
24603
-
protobuf3_24 = callPackage ../development/libraries/protobuf/3.24.nix { };
24604
-
protobuf3_23 = callPackage ../development/libraries/protobuf/3.23.nix { };
24605
-
protobuf3_21 = callPackage ../development/libraries/protobuf/3.21.nix {
24606
-
abseil-cpp = abseil-cpp_202103;
24607
-
};
24608
-
24609
protobuf3_20 = callPackage ../development/libraries/protobuf/3.20.nix {
24610
abseil-cpp = abseil-cpp_202103;
24611
};
···
24775
qm-dsp = callPackage ../development/libraries/audio/qm-dsp { };
24776
24777
qradiolink = callPackage ../applications/radio/qradiolink {
24778
-
protobuf = protobuf3_21;
24779
};
24780
24781
qrupdate = callPackage ../development/libraries/qrupdate { };
···
25453
25454
valhalla = callPackage ../development/libraries/valhalla {
25455
boost = boost.override { enablePython = true; python = python38; };
25456
-
protobuf = protobuf3_21.override {
25457
abseil-cpp = abseil-cpp_202103.override {
25458
cxxStandard = "17";
25459
};
···
26992
inherit (darwin.apple_sdk.frameworks) CoreServices;
26993
boost = boost177; # Configure checks for specific version.
26994
icu = icu69;
26995
-
protobuf = protobuf3_21;
26996
};
26997
26998
mysql_jdbc = callPackage ../servers/sql/mysql/jdbc { };
···
27278
rethinkdb = callPackage ../servers/nosql/rethinkdb {
27279
stdenv = clangStdenv;
27280
libtool = darwin.cctools;
27281
-
protobuf = protobuf3_21;
27282
};
27283
27284
rippled = callPackage ../servers/rippled {
···
28724
sgx-ssl = callPackage ../os-specific/linux/sgx/ssl { };
28725
28726
sgx-psw = callPackage ../os-specific/linux/sgx/psw {
28727
-
protobuf = protobuf3_21;
28728
};
28729
28730
shadow = callPackage ../os-specific/linux/shadow { };
···
30494
30495
astroid = callPackage ../applications/networking/mailreaders/astroid {
30496
vim = vim-full.override { features = "normal"; };
30497
-
protobuf = protobuf3_21;
30498
};
30499
30500
aucatctl = callPackage ../applications/audio/aucatctl { };
···
32528
};
32529
32530
hyperion-ng = libsForQt5.callPackage ../applications/video/hyperion-ng {
32531
-
protobuf = protobuf3_21;
32532
};
32533
32534
hyperledger-fabric = callPackage ../tools/misc/hyperledger-fabric { };
···
34023
avahi = avahi-compat;
34024
pulseSupport = config.pulseaudio or false;
34025
iceSupport = config.murmur.iceSupport or true;
34026
-
protobuf = protobuf3_21;
34027
}).murmur;
34028
34029
mumble = (callPackages ../applications/networking/mumble {
34030
avahi = avahi-compat;
34031
jackSupport = config.mumble.jackSupport or false;
34032
speechdSupport = config.mumble.speechdSupport or false;
34033
-
protobuf = protobuf3_21;
34034
}).mumble;
34035
34036
mumble_overlay = callPackage ../applications/networking/mumble/overlay.nix {
···
34158
osm2pgsql = callPackage ../tools/misc/osm2pgsql { };
34159
34160
ostinato = libsForQt5.callPackage ../applications/networking/ostinato {
34161
-
protobuf = protobuf3_21;
34162
};
34163
34164
p4 = callPackage ../applications/version-management/p4 {
···
34267
34268
shogun = callPackage ../applications/science/machine-learning/shogun {
34269
opencv = opencv3;
34270
-
protobuf = protobuf3_21;
34271
};
34272
34273
smplayer = libsForQt5.callPackage ../applications/video/smplayer { };
···
34630
osmo-sip-connector = callPackage ../servers/osmocom/osmo-sip-connector { };
34631
34632
osmscout-server = libsForQt5.callPackage ../applications/misc/osmscout-server {
34633
-
protobuf = protobuf3_21.override {
34634
abseil-cpp = abseil-cpp_202103.override {
34635
cxxStandard = "17";
34636
};
···
35149
rgp = libsForQt5.callPackage ../development/tools/rgp { };
35150
35151
ricochet = libsForQt5.callPackage ../applications/networking/instant-messengers/ricochet {
35152
-
protobuf = protobuf3_21;
35153
};
35154
35155
ries = callPackage ../applications/science/math/ries { };
···
35472
35473
curaengine = callPackage ../applications/misc/curaengine {
35474
inherit (python3.pkgs) libarcus;
35475
-
protobuf = protobuf3_21;
35476
};
35477
35478
cura = libsForQt5.callPackage ../applications/misc/cura { };
···
35861
tijolo = callPackage ../applications/editors/tijolo { };
35862
35863
tilemaker = callPackage ../applications/misc/tilemaker {
35864
-
protobuf = protobuf3_21;
35865
};
35866
35867
timbreid = callPackage ../applications/audio/pd-plugins/timbreid {
···
37063
37064
bitcoin-abc = libsForQt5.callPackage ../applications/blockchains/bitcoin-abc {
37065
withGui = true;
37066
-
protobuf = protobuf3_21;
37067
};
37068
bitcoind-abc = callPackage ../applications/blockchains/bitcoin-abc {
37069
mkDerivation = stdenv.mkDerivation;
37070
-
protobuf = protobuf3_21;
37071
withGui = false;
37072
};
37073
···
37642
ckan = callPackage ../games/ckan { };
37643
37644
cockatrice = libsForQt5.callPackage ../games/cockatrice {
37645
-
protobuf = protobuf3_21;
37646
};
37647
37648
commandergenius = callPackage ../games/commandergenius { };
···
38237
pong3d = callPackage ../games/pong3d { };
38238
38239
pokerth = libsForQt5.callPackage ../games/pokerth {
38240
-
protobuf = protobuf3_21;
38241
};
38242
38243
pokerth-server = libsForQt5.callPackage ../games/pokerth {
38244
target = "server";
38245
-
protobuf = protobuf3_21;
38246
};
38247
38248
pokete = callPackage ../games/pokete { };
···
39333
39334
or-tools = callPackage ../development/libraries/science/math/or-tools {
39335
python = python3;
39336
-
protobuf = protobuf3_21;
39337
# or-tools builds with -std=c++20, so abseil-cpp must
39338
# also be built that way
39339
abseil-cpp = abseil-cpp_202206.override {
···
770
protoc-gen-go-vtproto = callPackage ../development/tools/protoc-gen-go-vtproto { };
771
772
protoc-gen-grpc-web = callPackage ../development/tools/protoc-gen-grpc-web {
773
+
protobuf = protobuf_21;
774
};
775
776
protoc-gen-connect-go = callPackage ../development/tools/protoc-gen-connect-go { };
···
1094
antlr = antlr4_10;
1095
boost = boost177; # Configure checks for specific version.
1096
icu = icu69;
1097
+
protobuf = protobuf_21;
1098
};
1099
1100
broadlink-cli = callPackage ../tools/misc/broadlink-cli { };
···
2672
gensgs = pkgsi686Linux.callPackage ../applications/emulators/gens-gs { };
2673
2674
goldberg-emu = callPackage ../applications/emulators/goldberg-emu {
2675
+
protobuf = protobuf_21;
2676
};
2677
2678
gopsuinfo = callPackage ../tools/system/gopsuinfo { };
···
4172
amoco = callPackage ../tools/security/amoco { };
4173
4174
anbox = callPackage ../os-specific/linux/anbox {
4175
+
protobuf = protobuf_21;
4176
};
4177
4178
androidenv = callPackage ../development/mobile/androidenv { };
···
4728
common-licenses = callPackage ../data/misc/common-licenses { };
4729
4730
compactor = callPackage ../applications/networking/compactor {
4731
+
protobuf = protobuf_21;
4732
};
4733
4734
consul = callPackage ../servers/consul { };
···
5542
ghdorker = callPackage ../tools/security/ghdorker { };
5543
5544
ghidra = darwin.apple_sdk_11_0.callPackage ../tools/security/ghidra/build.nix {
5545
+
protobuf = protobuf_21;
5546
};
5547
5548
ghidra-bin = callPackage ../tools/security/ghidra { };
···
6862
clementine = libsForQt5.callPackage ../applications/audio/clementine {
6863
gst_plugins =
6864
with gst_all_1; [ gst-plugins-base gst-plugins-good gst-plugins-ugly gst-libav ];
6865
+
protobuf = protobuf_21;
6866
};
6867
6868
mellowplayer = libsForQt5.callPackage ../applications/audio/mellowplayer { };
···
7065
7066
mozc = callPackage ../tools/inputmethods/ibus-engines/ibus-mozc {
7067
stdenv = clangStdenv;
7068
+
protobuf = pkgs.protobuf_21.overrideDerivation (_: { stdenv = clangStdenv; });
7069
};
7070
7071
rime = callPackage ../tools/inputmethods/ibus-engines/ibus-rime { };
···
10261
10262
netdata = callPackage ../tools/system/netdata {
10263
inherit (darwin.apple_sdk.frameworks) CoreFoundation IOKit;
10264
+
protobuf = protobuf_21;
10265
};
10266
# Exposed here so the bots can auto-upgrade it
10267
netdata-go-plugins = callPackage ../tools/system/netdata/go.d.plugin.nix { };
···
11402
nq = callPackage ../tools/system/nq { };
11403
11404
nsjail = callPackage ../tools/security/nsjail {
11405
+
protobuf = protobuf_21;
11406
};
11407
11408
nss_pam_ldapd = callPackage ../tools/networking/nss-pam-ldapd { };
···
11534
oh-my-zsh = callPackage ../shells/zsh/oh-my-zsh { };
11535
11536
ola = callPackage ../applications/misc/ola {
11537
+
protobuf = protobuf_21;
11538
};
11539
11540
olive-editor = qt6Packages.callPackage ../applications/video/olive-editor {
···
11811
p3x-onenote = callPackage ../applications/office/p3x-onenote { };
11812
11813
p4c = callPackage ../development/compilers/p4c {
11814
+
protobuf = protobuf_21;
11815
};
11816
11817
p7zip = callPackage ../tools/archivers/p7zip { };
···
15204
zasm = callPackage ../development/compilers/zasm { };
15205
15206
zbackup = callPackage ../tools/backup/zbackup {
15207
+
protobuf = protobuf_21;
15208
};
15209
15210
zbar = libsForQt5.callPackage ../tools/graphics/zbar {
···
20139
};
20140
20141
spoofer = callPackage ../tools/networking/spoofer {
20142
+
protobuf = protobuf_21;
20143
};
20144
20145
spoofer-gui = callPackage ../tools/networking/spoofer {
20146
withGUI = true;
20147
+
protobuf = protobuf_21;
20148
};
20149
20150
spooles = callPackage ../development/libraries/science/math/spooles { };
···
20879
cmrt = callPackage ../development/libraries/cmrt { };
20880
20881
codecserver = callPackage ../applications/audio/codecserver {
20882
+
protobuf = protobuf_21;
20883
};
20884
20885
coeurl = callPackage ../development/libraries/coeurl { };
···
21391
gallia = callPackage ../tools/security/gallia { };
21392
21393
gamenetworkingsockets = callPackage ../development/libraries/gamenetworkingsockets {
21394
+
protobuf = protobuf_21;
21395
};
21396
21397
game-music-emu = callPackage ../development/libraries/audio/game-music-emu { };
···
23415
libptytty = callPackage ../development/libraries/libptytty { };
23416
23417
libpulsar = callPackage ../development/libraries/libpulsar {
23418
+
protobuf = protobuf_21;
23419
};
23420
23421
libpwquality = callPackage ../development/libraries/libpwquality {
···
23824
lightspark = callPackage ../misc/lightspark { };
23825
23826
lightstep-tracer-cpp = callPackage ../development/libraries/lightstep-tracer-cpp {
23827
+
protobuf = protobuf_21;
23828
};
23829
23830
ligolo-ng = callPackage ../tools/networking/ligolo-ng { };
···
24589
24590
prospector = callPackage ../development/tools/prospector { };
24591
24592
+
protobuf = protobuf_24;
24593
0
24594
protobuf_24 = callPackage ../development/libraries/protobuf/24.nix { };
0
24595
protobuf_23 = callPackage ../development/libraries/protobuf/23.nix { };
0
24596
protobuf_21 = callPackage ../development/libraries/protobuf/21.nix {
24597
abseil-cpp = abseil-cpp_202103;
24598
};
24599
0
0
0
0
0
0
24600
protobuf3_20 = callPackage ../development/libraries/protobuf/3.20.nix {
24601
abseil-cpp = abseil-cpp_202103;
24602
};
···
24766
qm-dsp = callPackage ../development/libraries/audio/qm-dsp { };
24767
24768
qradiolink = callPackage ../applications/radio/qradiolink {
24769
+
protobuf = protobuf_21;
24770
};
24771
24772
qrupdate = callPackage ../development/libraries/qrupdate { };
···
25444
25445
valhalla = callPackage ../development/libraries/valhalla {
25446
boost = boost.override { enablePython = true; python = python38; };
25447
+
protobuf = protobuf_21.override {
25448
abseil-cpp = abseil-cpp_202103.override {
25449
cxxStandard = "17";
25450
};
···
26983
inherit (darwin.apple_sdk.frameworks) CoreServices;
26984
boost = boost177; # Configure checks for specific version.
26985
icu = icu69;
26986
+
protobuf = protobuf_21;
26987
};
26988
26989
mysql_jdbc = callPackage ../servers/sql/mysql/jdbc { };
···
27269
rethinkdb = callPackage ../servers/nosql/rethinkdb {
27270
stdenv = clangStdenv;
27271
libtool = darwin.cctools;
27272
+
protobuf = protobuf_21;
27273
};
27274
27275
rippled = callPackage ../servers/rippled {
···
28715
sgx-ssl = callPackage ../os-specific/linux/sgx/ssl { };
28716
28717
sgx-psw = callPackage ../os-specific/linux/sgx/psw {
28718
+
protobuf = protobuf_21;
28719
};
28720
28721
shadow = callPackage ../os-specific/linux/shadow { };
···
30485
30486
astroid = callPackage ../applications/networking/mailreaders/astroid {
30487
vim = vim-full.override { features = "normal"; };
30488
+
protobuf = protobuf_21;
30489
};
30490
30491
aucatctl = callPackage ../applications/audio/aucatctl { };
···
32519
};
32520
32521
hyperion-ng = libsForQt5.callPackage ../applications/video/hyperion-ng {
32522
+
protobuf = protobuf_21;
32523
};
32524
32525
hyperledger-fabric = callPackage ../tools/misc/hyperledger-fabric { };
···
34014
avahi = avahi-compat;
34015
pulseSupport = config.pulseaudio or false;
34016
iceSupport = config.murmur.iceSupport or true;
34017
+
protobuf = protobuf_21;
34018
}).murmur;
34019
34020
mumble = (callPackages ../applications/networking/mumble {
34021
avahi = avahi-compat;
34022
jackSupport = config.mumble.jackSupport or false;
34023
speechdSupport = config.mumble.speechdSupport or false;
34024
+
protobuf = protobuf_21;
34025
}).mumble;
34026
34027
mumble_overlay = callPackage ../applications/networking/mumble/overlay.nix {
···
34149
osm2pgsql = callPackage ../tools/misc/osm2pgsql { };
34150
34151
ostinato = libsForQt5.callPackage ../applications/networking/ostinato {
34152
+
protobuf = protobuf_21;
34153
};
34154
34155
p4 = callPackage ../applications/version-management/p4 {
···
34258
34259
shogun = callPackage ../applications/science/machine-learning/shogun {
34260
opencv = opencv3;
34261
+
protobuf = protobuf_21;
34262
};
34263
34264
smplayer = libsForQt5.callPackage ../applications/video/smplayer { };
···
34621
osmo-sip-connector = callPackage ../servers/osmocom/osmo-sip-connector { };
34622
34623
osmscout-server = libsForQt5.callPackage ../applications/misc/osmscout-server {
34624
+
protobuf = protobuf_21.override {
34625
abseil-cpp = abseil-cpp_202103.override {
34626
cxxStandard = "17";
34627
};
···
35140
rgp = libsForQt5.callPackage ../development/tools/rgp { };
35141
35142
ricochet = libsForQt5.callPackage ../applications/networking/instant-messengers/ricochet {
35143
+
protobuf = protobuf_21;
35144
};
35145
35146
ries = callPackage ../applications/science/math/ries { };
···
35463
35464
curaengine = callPackage ../applications/misc/curaengine {
35465
inherit (python3.pkgs) libarcus;
35466
+
protobuf = protobuf_21;
35467
};
35468
35469
cura = libsForQt5.callPackage ../applications/misc/cura { };
···
35852
tijolo = callPackage ../applications/editors/tijolo { };
35853
35854
tilemaker = callPackage ../applications/misc/tilemaker {
35855
+
protobuf = protobuf_21;
35856
};
35857
35858
timbreid = callPackage ../applications/audio/pd-plugins/timbreid {
···
37054
37055
bitcoin-abc = libsForQt5.callPackage ../applications/blockchains/bitcoin-abc {
37056
withGui = true;
37057
+
protobuf = protobuf_21;
37058
};
37059
bitcoind-abc = callPackage ../applications/blockchains/bitcoin-abc {
37060
mkDerivation = stdenv.mkDerivation;
37061
+
protobuf = protobuf_21;
37062
withGui = false;
37063
};
37064
···
37633
ckan = callPackage ../games/ckan { };
37634
37635
cockatrice = libsForQt5.callPackage ../games/cockatrice {
37636
+
protobuf = protobuf_21;
37637
};
37638
37639
commandergenius = callPackage ../games/commandergenius { };
···
38228
pong3d = callPackage ../games/pong3d { };
38229
38230
pokerth = libsForQt5.callPackage ../games/pokerth {
38231
+
protobuf = protobuf_21;
38232
};
38233
38234
pokerth-server = libsForQt5.callPackage ../games/pokerth {
38235
target = "server";
38236
+
protobuf = protobuf_21;
38237
};
38238
38239
pokete = callPackage ../games/pokete { };
···
39324
39325
or-tools = callPackage ../development/libraries/science/math/or-tools {
39326
python = python3;
39327
+
protobuf = protobuf_21;
39328
# or-tools builds with -std=c++20, so abseil-cpp must
39329
# also be built that way
39330
abseil-cpp = abseil-cpp_202206.override {
+2
-2
pkgs/top-level/python-packages.nix
···
6068
};
6069
6070
libarcus = callPackage ../development/python-modules/libarcus {
6071
-
protobuf = pkgs.protobuf3_21;
6072
};
6073
6074
libasyncns = callPackage ../development/python-modules/libasyncns {
···
9487
# Protobuf 4.x
9488
protobuf = callPackage ../development/python-modules/protobuf {
9489
# If a protobuf upgrade causes many Python packages to fail, please pin it here to the previous version.
9490
-
protobuf = pkgs.protobuf_24;
9491
};
9492
9493
# Protobuf 3.x
···
6068
};
6069
6070
libarcus = callPackage ../development/python-modules/libarcus {
6071
+
protobuf = pkgs.protobuf_21;
6072
};
6073
6074
libasyncns = callPackage ../development/python-modules/libasyncns {
···
9487
# Protobuf 4.x
9488
protobuf = callPackage ../development/python-modules/protobuf {
9489
# If a protobuf upgrade causes many Python packages to fail, please pin it here to the previous version.
9490
+
protobuf = pkgs.protobuf;
9491
};
9492
9493
# Protobuf 3.x