protobuf: use new package definition only

This commit is contained in:
Aaron Jheng 2023-10-06 03:27:27 +00:00
parent ee14e5df15
commit 80aaa46d4c
No known key found for this signature in database
GPG Key ID: F6A547A869D050A3
15 changed files with 65 additions and 205 deletions

View File

@ -2,7 +2,7 @@
, extra-cmake-modules, kdoctools , extra-cmake-modules, kdoctools
, qtscript, qtsvg, qtquickcontrols, qtwebengine , qtscript, qtsvg, qtquickcontrols, qtwebengine
, krunner, shared-mime-info, kparts, knewstuff , krunner, shared-mime-info, kparts, knewstuff
, gpsd, perl, protobuf3_21 , gpsd, perl, protobuf_21
}: }:
mkDerivation { mkDerivation {
@ -15,7 +15,7 @@ mkDerivation {
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
nativeBuildInputs = [ extra-cmake-modules kdoctools perl ]; nativeBuildInputs = [ extra-cmake-modules kdoctools perl ];
propagatedBuildInputs = [ propagatedBuildInputs = [
protobuf3_21 qtscript qtsvg qtquickcontrols qtwebengine shared-mime-info krunner kparts protobuf_21 qtscript qtsvg qtquickcontrols qtwebengine shared-mime-info krunner kparts
knewstuff gpsd knewstuff gpsd
]; ];
preConfigure = '' preConfigure = ''

View File

@ -3,14 +3,14 @@
, fetchFromGitHub , fetchFromGitHub
, cmake , cmake
, openssl , openssl
, protobuf3_21 , protobuf_21
, catch2 , catch2
, boost181 , boost181
, icu , icu
}: }:
let let
boost = boost181.override { enableStatic = true; }; boost = boost181.override { enableStatic = true; };
protobuf = protobuf3_21.override { enableShared = false; }; protobuf = protobuf_21.override { enableShared = false; };
in in
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "localproxy"; pname = "localproxy";

View File

@ -11,7 +11,7 @@
openssl, openssl,
pkg-config, pkg-config,
protobuf3_23, protobuf_23,
grpc, grpc,
pandoc, pandoc,
python3, python3,
@ -87,14 +87,14 @@ stdenv.mkDerivation rec {
# For future updates: The currently used version can be found in the file # For future updates: The currently used version can be found in the file
# etc/repos.json: https://github.com/just-buildsystem/justbuild/blob/master/etc/repos.json # etc/repos.json: https://github.com/just-buildsystem/justbuild/blob/master/etc/repos.json
# under the key .repositories.protobuf # under the key .repositories.protobuf
protobuf3_23 protobuf_23
python3 python3
]; ];
postPatch = '' postPatch = ''
sed -ie 's|\./bin/just-mr.py|${python3}/bin/python3 ./bin/just-mr.py|' bin/bootstrap.py sed -ie 's|\./bin/just-mr.py|${python3}/bin/python3 ./bin/just-mr.py|' bin/bootstrap.py
sed -ie 's|#!/usr/bin/env python3|#!${python3}/bin/python3|' bin/parallel-bootstrap-traverser.py sed -ie 's|#!/usr/bin/env python3|#!${python3}/bin/python3|' bin/parallel-bootstrap-traverser.py
jq '.repositories.protobuf.pkg_bootstrap.local_path = "${protobuf3_23}"' etc/repos.json > etc/repos.json.patched jq '.repositories.protobuf.pkg_bootstrap.local_path = "${protobuf_23}"' etc/repos.json > etc/repos.json.patched
mv etc/repos.json.patched etc/repos.json mv etc/repos.json.patched etc/repos.json
jq '.repositories.com_github_grpc_grpc.pkg_bootstrap.local_path = "${grpc}"' etc/repos.json > etc/repos.json.patched jq '.repositories.com_github_grpc_grpc.pkg_bootstrap.local_path = "${grpc}"' etc/repos.json > etc/repos.json.patched
mv etc/repos.json.patched etc/repos.json mv etc/repos.json.patched etc/repos.json

View File

@ -17,7 +17,7 @@
, microsoft-gsl , microsoft-gsl
, iconv , iconv
, gtest , gtest
, protobuf3_21 , protobuf_21
, pythonSupport ? true , pythonSupport ? true
}: }:
@ -92,7 +92,7 @@ stdenv.mkDerivation rec {
cmake cmake
pkg-config pkg-config
python3Packages.python python3Packages.python
protobuf3_21 protobuf_21
] ++ lib.optionals pythonSupport (with python3Packages; [ ] ++ lib.optionals pythonSupport (with python3Packages; [
setuptools setuptools
wheel wheel
@ -177,7 +177,7 @@ stdenv.mkDerivation rec {
''; '';
passthru = { passthru = {
protobuf = protobuf3_21; protobuf = protobuf_21;
tests = lib.optionalAttrs pythonSupport { tests = lib.optionalAttrs pythonSupport {
python = python3Packages.onnxruntime; python = python3Packages.onnxruntime;
}; };

View File

@ -2,7 +2,7 @@
, fetchFromGitHub , fetchFromGitHub
, fetchpatch , fetchpatch
, cmake, pkg-config, unzip, zlib, pcre, hdf5 , cmake, pkg-config, unzip, zlib, pcre, hdf5
, glog, boost, gflags, protobuf3_21 , glog, boost, gflags, protobuf_21
, config , config
, enableJPEG ? true, libjpeg , enableJPEG ? true, libjpeg
@ -186,7 +186,7 @@ stdenv.mkDerivation {
buildInputs = buildInputs =
[ zlib pcre hdf5 glog boost gflags ] [ zlib pcre hdf5 glog boost gflags ]
++ lib.optional useSystemProtobuf protobuf3_21 ++ lib.optional useSystemProtobuf protobuf_21
++ lib.optional enablePython pythonPackages.python ++ lib.optional enablePython pythonPackages.python
++ lib.optional enableGtk2 gtk2 ++ lib.optional enableGtk2 gtk2
++ lib.optional enableGtk3 gtk3 ++ lib.optional enableGtk3 gtk3

View File

@ -11,7 +11,7 @@
, hdf5 , hdf5
, boost , boost
, gflags , gflags
, protobuf3_21 , protobuf_21
, config , config
, ocl-icd , ocl-icd
, buildPackages , buildPackages
@ -317,7 +317,7 @@ stdenv.mkDerivation {
echo '"(build info elided)"' > modules/core/version_string.inc echo '"(build info elided)"' > modules/core/version_string.inc
''; '';
buildInputs = [ zlib pcre boost gflags protobuf3_21 ] buildInputs = [ zlib pcre boost gflags protobuf_21 ]
++ lib.optional enablePython pythonPackages.python ++ lib.optional enablePython pythonPackages.python
++ lib.optional (stdenv.buildPlatform == stdenv.hostPlatform) hdf5 ++ lib.optional (stdenv.buildPlatform == stdenv.hostPlatform) hdf5
++ lib.optional enableGtk2 gtk2 ++ lib.optional enableGtk2 gtk2
@ -369,7 +369,7 @@ stdenv.mkDerivation {
"-DOPENCV_GENERATE_PKGCONFIG=ON" "-DOPENCV_GENERATE_PKGCONFIG=ON"
"-DWITH_OPENMP=ON" "-DWITH_OPENMP=ON"
"-DBUILD_PROTOBUF=OFF" "-DBUILD_PROTOBUF=OFF"
"-DProtobuf_PROTOC_EXECUTABLE=${lib.getExe buildPackages.protobuf3_21}" "-DProtobuf_PROTOC_EXECUTABLE=${lib.getExe buildPackages.protobuf_21}"
"-DPROTOBUF_UPDATE_FILES=ON" "-DPROTOBUF_UPDATE_FILES=ON"
"-DOPENCV_ENABLE_NONFREE=${printEnabled enableUnfree}" "-DOPENCV_ENABLE_NONFREE=${printEnabled enableUnfree}"
"-DBUILD_TESTS=${printEnabled runAccuracyTests}" "-DBUILD_TESTS=${printEnabled runAccuracyTests}"

View File

@ -1,6 +0,0 @@
{ callPackage, ... } @ args:
callPackage ./generic-v3-cmake.nix ({
version = "3.21.12";
sha256 = "sha256-VZQEFHq17UsTH5CZZOcJBKiScGV2xPJ/e6gkkVliRCU=";
} // args)

View File

@ -1,6 +0,0 @@
{ callPackage, ... } @ args:
callPackage ./generic-v3-cmake.nix ({
version = "3.23.4";
sha256 = "sha256-eI+mrsZAOLEsdyTC3B+K+GjD3r16CmPx1KJ2KhCwFdg=";
} // args)

View File

@ -1,6 +0,0 @@
{ callPackage, ... } @ args:
callPackage ./generic-v3-cmake.nix ({
version = "3.24.3";
sha256 = "sha256-wXGQW/o674DeLXX2IlyZskl5OrBcSRptOMoJqLQGm94=";
} // args)

View File

@ -1,116 +0,0 @@
# The cmake version of this build is meant to enable both cmake and .pc being exported
# this is important because grpc exports a .cmake file which also expects for protobuf
# to have been exported through cmake as well.
{ lib
, stdenv
, abseil-cpp
, buildPackages
, cmake
, fetchFromGitHub
, fetchpatch
, gtest
, zlib
, version
, sha256
# downstream dependencies
, python3
, grpc
, enableShared ? !stdenv.hostPlatform.isStatic
, ...
}:
stdenv.mkDerivation (finalAttrs: {
pname = "protobuf";
inherit version;
src = fetchFromGitHub {
owner = "protocolbuffers";
repo = "protobuf";
rev = "v${version}";
inherit sha256;
};
postPatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace src/google/protobuf/testing/googletest.cc \
--replace 'tmpnam(b)' '"'$TMPDIR'/foo"'
'';
patches = lib.optionals (lib.versionOlder version "3.22") [
# fix protobuf-targets.cmake installation paths, and allow for CMAKE_INSTALL_LIBDIR to be absolute
# https://github.com/protocolbuffers/protobuf/pull/10090
(fetchpatch {
url = "https://github.com/protocolbuffers/protobuf/commit/a7324f88e92bc16b57f3683403b6c993bf68070b.patch";
sha256 = "sha256-SmwaUjOjjZulg/wgNmR/F5b8rhYA2wkKAjHIOxjcQdQ=";
})
] ++ lib.optionals stdenv.hostPlatform.isStatic [
./static-executables-have-no-rpath.patch
];
nativeBuildInputs =
let
protobufVersion = "${lib.versions.major version}_${lib.versions.minor version}";
in
[
cmake
] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
# protoc of the same version must be available for build. For non-cross builds, it's able to
# re-use the executable generated as part of the build
buildPackages."protobuf${protobufVersion}"
];
buildInputs = [
gtest
zlib
];
propagatedBuildInputs = [
abseil-cpp
];
strictDeps = true;
cmakeDir = if lib.versionOlder version "3.22" then "../cmake" else null;
cmakeFlags = [
"-Dprotobuf_USE_EXTERNAL_GTEST=ON"
"-Dprotobuf_ABSL_PROVIDER=package"
] ++ lib.optionals enableShared [
"-Dprotobuf_BUILD_SHARED_LIBS=ON"
]
# Tests fail to build on 32-bit platforms; fixed in 3.22
# https://github.com/protocolbuffers/protobuf/issues/10418
++ lib.optionals (stdenv.targetPlatform.is32bit && lib.versionOlder version "3.22") [
"-Dprotobuf_BUILD_TESTS=OFF"
];
# FIXME: investigate. 3.24 and 3.23 have different errors.
# At least some of it is not reproduced on some other machine; example:
# https://hydra.nixos.org/build/235677717/nixlog/4/tail
doCheck = !(stdenv.isDarwin && lib.versionAtLeast version "3.23");
passthru = {
tests = {
pythonProtobuf = python3.pkgs.protobuf.override (_: {
protobuf = finalAttrs.finalPackage;
});
inherit grpc;
};
inherit abseil-cpp;
};
meta = {
description = "Google's data interchange format";
longDescription = ''
Protocol Buffers are a way of encoding structured data in an efficient
yet extensible format. Google uses Protocol Buffers for almost all of
its internal RPC protocols and file formats.
'';
license = lib.licenses.bsd3;
platforms = lib.platforms.all;
homepage = "https://protobuf.dev/";
maintainers = with lib.maintainers; [ jonringer ];
mainProgram = "protoc";
};
})

View File

@ -29,7 +29,7 @@ stdenv.mkDerivation (finalAttrs: {
owner = "protocolbuffers"; owner = "protocolbuffers";
repo = "protobuf"; repo = "protobuf";
rev = "v${version}"; rev = "v${version}";
sha256 = hash; inherit hash;
}; };
postPatch = lib.optionalString stdenv.isDarwin '' postPatch = lib.optionalString stdenv.isDarwin ''
@ -42,7 +42,7 @@ stdenv.mkDerivation (finalAttrs: {
# https://github.com/protocolbuffers/protobuf/pull/10090 # https://github.com/protocolbuffers/protobuf/pull/10090
(fetchpatch { (fetchpatch {
url = "https://github.com/protocolbuffers/protobuf/commit/a7324f88e92bc16b57f3683403b6c993bf68070b.patch"; url = "https://github.com/protocolbuffers/protobuf/commit/a7324f88e92bc16b57f3683403b6c993bf68070b.patch";
sha256 = "sha256-SmwaUjOjjZulg/wgNmR/F5b8rhYA2wkKAjHIOxjcQdQ="; hash = "sha256-SmwaUjOjjZulg/wgNmR/F5b8rhYA2wkKAjHIOxjcQdQ=";
}) })
] ++ lib.optionals stdenv.hostPlatform.isStatic [ ] ++ lib.optionals stdenv.hostPlatform.isStatic [
./static-executables-have-no-rpath.patch ./static-executables-have-no-rpath.patch

View File

@ -16,7 +16,7 @@
, p11-kit , p11-kit
, pkg-config , pkg-config
, procps , procps
, protobuf3_21 , protobuf_21
, python3 , python3
, snappy , snappy
, src , src
@ -100,7 +100,7 @@ llvmPackages_14.stdenv.mkDerivation rec {
dpdk dpdk
hdr-histogram hdr-histogram
p11-kit p11-kit
protobuf3_21 protobuf_21
rapidjson rapidjson
seastar seastar
snappy snappy

View File

@ -689,6 +689,9 @@ mapAliases ({
prometheus-speedtest-exporter = throw "prometheus-speedtest-exporter was removed as unmaintained"; # Added 2023-07-31 prometheus-speedtest-exporter = throw "prometheus-speedtest-exporter was removed as unmaintained"; # Added 2023-07-31
protobuf3_17 = throw "protobuf3_17 does not receive updates anymore and has been removed"; # Added 2023-05-21 protobuf3_17 = throw "protobuf3_17 does not receive updates anymore and has been removed"; # Added 2023-05-21
protobuf3_19 = throw "protobuf3_19 does not receive updates anymore and has been removed"; # Added 2023-10-01 protobuf3_19 = throw "protobuf3_19 does not receive updates anymore and has been removed"; # Added 2023-10-01
protobuf3_24 = protobuf_24;
protobuf3_23 = protobuf_23;
protobuf3_21 = protobuf_21;
protonup = protonup-ng; # Added 2022-11-06 protonup = protonup-ng; # Added 2022-11-06
proxmark3-rrg = proxmark3; # Added 2023-07-25 proxmark3-rrg = proxmark3; # Added 2023-07-25
proxmark3-unstable = throw "removed in favor of rfidresearchgroup fork"; # Added 2023-07-25 proxmark3-unstable = throw "removed in favor of rfidresearchgroup fork"; # Added 2023-07-25

View File

@ -770,7 +770,7 @@ with pkgs;
protoc-gen-go-vtproto = callPackage ../development/tools/protoc-gen-go-vtproto { }; protoc-gen-go-vtproto = callPackage ../development/tools/protoc-gen-go-vtproto { };
protoc-gen-grpc-web = callPackage ../development/tools/protoc-gen-grpc-web { protoc-gen-grpc-web = callPackage ../development/tools/protoc-gen-grpc-web {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
protoc-gen-connect-go = callPackage ../development/tools/protoc-gen-connect-go { }; protoc-gen-connect-go = callPackage ../development/tools/protoc-gen-connect-go { };
@ -1094,7 +1094,7 @@ with pkgs;
antlr = antlr4_10; antlr = antlr4_10;
boost = boost177; # Configure checks for specific version. boost = boost177; # Configure checks for specific version.
icu = icu69; icu = icu69;
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
broadlink-cli = callPackage ../tools/misc/broadlink-cli { }; broadlink-cli = callPackage ../tools/misc/broadlink-cli { };
@ -2672,7 +2672,7 @@ with pkgs;
gensgs = pkgsi686Linux.callPackage ../applications/emulators/gens-gs { }; gensgs = pkgsi686Linux.callPackage ../applications/emulators/gens-gs { };
goldberg-emu = callPackage ../applications/emulators/goldberg-emu { goldberg-emu = callPackage ../applications/emulators/goldberg-emu {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
gopsuinfo = callPackage ../tools/system/gopsuinfo { }; gopsuinfo = callPackage ../tools/system/gopsuinfo { };
@ -4172,7 +4172,7 @@ with pkgs;
amoco = callPackage ../tools/security/amoco { }; amoco = callPackage ../tools/security/amoco { };
anbox = callPackage ../os-specific/linux/anbox { anbox = callPackage ../os-specific/linux/anbox {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
androidenv = callPackage ../development/mobile/androidenv { }; androidenv = callPackage ../development/mobile/androidenv { };
@ -4728,7 +4728,7 @@ with pkgs;
common-licenses = callPackage ../data/misc/common-licenses { }; common-licenses = callPackage ../data/misc/common-licenses { };
compactor = callPackage ../applications/networking/compactor { compactor = callPackage ../applications/networking/compactor {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
consul = callPackage ../servers/consul { }; consul = callPackage ../servers/consul { };
@ -5542,7 +5542,7 @@ with pkgs;
ghdorker = callPackage ../tools/security/ghdorker { }; ghdorker = callPackage ../tools/security/ghdorker { };
ghidra = darwin.apple_sdk_11_0.callPackage ../tools/security/ghidra/build.nix { ghidra = darwin.apple_sdk_11_0.callPackage ../tools/security/ghidra/build.nix {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
ghidra-bin = callPackage ../tools/security/ghidra { }; ghidra-bin = callPackage ../tools/security/ghidra { };
@ -6862,7 +6862,7 @@ with pkgs;
clementine = libsForQt5.callPackage ../applications/audio/clementine { clementine = libsForQt5.callPackage ../applications/audio/clementine {
gst_plugins = gst_plugins =
with gst_all_1; [ gst-plugins-base gst-plugins-good gst-plugins-ugly gst-libav ]; with gst_all_1; [ gst-plugins-base gst-plugins-good gst-plugins-ugly gst-libav ];
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
mellowplayer = libsForQt5.callPackage ../applications/audio/mellowplayer { }; mellowplayer = libsForQt5.callPackage ../applications/audio/mellowplayer { };
@ -7065,7 +7065,7 @@ with pkgs;
mozc = callPackage ../tools/inputmethods/ibus-engines/ibus-mozc { mozc = callPackage ../tools/inputmethods/ibus-engines/ibus-mozc {
stdenv = clangStdenv; stdenv = clangStdenv;
protobuf = pkgs.protobuf3_21.overrideDerivation (_: { stdenv = clangStdenv; }); protobuf = pkgs.protobuf_21.overrideDerivation (_: { stdenv = clangStdenv; });
}; };
rime = callPackage ../tools/inputmethods/ibus-engines/ibus-rime { }; rime = callPackage ../tools/inputmethods/ibus-engines/ibus-rime { };
@ -10261,7 +10261,7 @@ with pkgs;
netdata = callPackage ../tools/system/netdata { netdata = callPackage ../tools/system/netdata {
inherit (darwin.apple_sdk.frameworks) CoreFoundation IOKit; inherit (darwin.apple_sdk.frameworks) CoreFoundation IOKit;
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
# Exposed here so the bots can auto-upgrade it # Exposed here so the bots can auto-upgrade it
netdata-go-plugins = callPackage ../tools/system/netdata/go.d.plugin.nix { }; netdata-go-plugins = callPackage ../tools/system/netdata/go.d.plugin.nix { };
@ -11402,7 +11402,7 @@ with pkgs;
nq = callPackage ../tools/system/nq { }; nq = callPackage ../tools/system/nq { };
nsjail = callPackage ../tools/security/nsjail { nsjail = callPackage ../tools/security/nsjail {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
nss_pam_ldapd = callPackage ../tools/networking/nss-pam-ldapd { }; nss_pam_ldapd = callPackage ../tools/networking/nss-pam-ldapd { };
@ -11534,7 +11534,7 @@ with pkgs;
oh-my-zsh = callPackage ../shells/zsh/oh-my-zsh { }; oh-my-zsh = callPackage ../shells/zsh/oh-my-zsh { };
ola = callPackage ../applications/misc/ola { ola = callPackage ../applications/misc/ola {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
olive-editor = qt6Packages.callPackage ../applications/video/olive-editor { olive-editor = qt6Packages.callPackage ../applications/video/olive-editor {
@ -11811,7 +11811,7 @@ with pkgs;
p3x-onenote = callPackage ../applications/office/p3x-onenote { }; p3x-onenote = callPackage ../applications/office/p3x-onenote { };
p4c = callPackage ../development/compilers/p4c { p4c = callPackage ../development/compilers/p4c {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
p7zip = callPackage ../tools/archivers/p7zip { }; p7zip = callPackage ../tools/archivers/p7zip { };
@ -15204,7 +15204,7 @@ with pkgs;
zasm = callPackage ../development/compilers/zasm { }; zasm = callPackage ../development/compilers/zasm { };
zbackup = callPackage ../tools/backup/zbackup { zbackup = callPackage ../tools/backup/zbackup {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
zbar = libsForQt5.callPackage ../tools/graphics/zbar { zbar = libsForQt5.callPackage ../tools/graphics/zbar {
@ -20139,12 +20139,12 @@ with pkgs;
}; };
spoofer = callPackage ../tools/networking/spoofer { spoofer = callPackage ../tools/networking/spoofer {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
spoofer-gui = callPackage ../tools/networking/spoofer { spoofer-gui = callPackage ../tools/networking/spoofer {
withGUI = true; withGUI = true;
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
spooles = callPackage ../development/libraries/science/math/spooles { }; spooles = callPackage ../development/libraries/science/math/spooles { };
@ -20879,7 +20879,7 @@ with pkgs;
cmrt = callPackage ../development/libraries/cmrt { }; cmrt = callPackage ../development/libraries/cmrt { };
codecserver = callPackage ../applications/audio/codecserver { codecserver = callPackage ../applications/audio/codecserver {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
coeurl = callPackage ../development/libraries/coeurl { }; coeurl = callPackage ../development/libraries/coeurl { };
@ -21391,7 +21391,7 @@ with pkgs;
gallia = callPackage ../tools/security/gallia { }; gallia = callPackage ../tools/security/gallia { };
gamenetworkingsockets = callPackage ../development/libraries/gamenetworkingsockets { gamenetworkingsockets = callPackage ../development/libraries/gamenetworkingsockets {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
game-music-emu = callPackage ../development/libraries/audio/game-music-emu { }; game-music-emu = callPackage ../development/libraries/audio/game-music-emu { };
@ -23415,7 +23415,7 @@ with pkgs;
libptytty = callPackage ../development/libraries/libptytty { }; libptytty = callPackage ../development/libraries/libptytty { };
libpulsar = callPackage ../development/libraries/libpulsar { libpulsar = callPackage ../development/libraries/libpulsar {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
libpwquality = callPackage ../development/libraries/libpwquality { libpwquality = callPackage ../development/libraries/libpwquality {
@ -23824,7 +23824,7 @@ with pkgs;
lightspark = callPackage ../misc/lightspark { }; lightspark = callPackage ../misc/lightspark { };
lightstep-tracer-cpp = callPackage ../development/libraries/lightstep-tracer-cpp { lightstep-tracer-cpp = callPackage ../development/libraries/lightstep-tracer-cpp {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
ligolo-ng = callPackage ../tools/networking/ligolo-ng { }; ligolo-ng = callPackage ../tools/networking/ligolo-ng { };
@ -24589,23 +24589,14 @@ with pkgs;
prospector = callPackage ../development/tools/prospector { }; prospector = callPackage ../development/tools/prospector { };
protobuf = protobuf3_24; protobuf = protobuf_24;
# C++ 4.24 runtime, Python 4.24 runtime
protobuf_24 = callPackage ../development/libraries/protobuf/24.nix { }; protobuf_24 = callPackage ../development/libraries/protobuf/24.nix { };
# C++ 4.23 runtime, Python 4.23 runtime
protobuf_23 = callPackage ../development/libraries/protobuf/23.nix { }; protobuf_23 = callPackage ../development/libraries/protobuf/23.nix { };
# C++ 3.21 runtime, Python 4.21 runtime
protobuf_21 = callPackage ../development/libraries/protobuf/21.nix { protobuf_21 = callPackage ../development/libraries/protobuf/21.nix {
abseil-cpp = abseil-cpp_202103; abseil-cpp = abseil-cpp_202103;
}; };
protobuf3_24 = callPackage ../development/libraries/protobuf/3.24.nix { };
protobuf3_23 = callPackage ../development/libraries/protobuf/3.23.nix { };
protobuf3_21 = callPackage ../development/libraries/protobuf/3.21.nix {
abseil-cpp = abseil-cpp_202103;
};
protobuf3_20 = callPackage ../development/libraries/protobuf/3.20.nix { protobuf3_20 = callPackage ../development/libraries/protobuf/3.20.nix {
abseil-cpp = abseil-cpp_202103; abseil-cpp = abseil-cpp_202103;
}; };
@ -24775,7 +24766,7 @@ with pkgs;
qm-dsp = callPackage ../development/libraries/audio/qm-dsp { }; qm-dsp = callPackage ../development/libraries/audio/qm-dsp { };
qradiolink = callPackage ../applications/radio/qradiolink { qradiolink = callPackage ../applications/radio/qradiolink {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
qrupdate = callPackage ../development/libraries/qrupdate { }; qrupdate = callPackage ../development/libraries/qrupdate { };
@ -25453,7 +25444,7 @@ with pkgs;
valhalla = callPackage ../development/libraries/valhalla { valhalla = callPackage ../development/libraries/valhalla {
boost = boost.override { enablePython = true; python = python38; }; boost = boost.override { enablePython = true; python = python38; };
protobuf = protobuf3_21.override { protobuf = protobuf_21.override {
abseil-cpp = abseil-cpp_202103.override { abseil-cpp = abseil-cpp_202103.override {
cxxStandard = "17"; cxxStandard = "17";
}; };
@ -26992,7 +26983,7 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) CoreServices; inherit (darwin.apple_sdk.frameworks) CoreServices;
boost = boost177; # Configure checks for specific version. boost = boost177; # Configure checks for specific version.
icu = icu69; icu = icu69;
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
mysql_jdbc = callPackage ../servers/sql/mysql/jdbc { }; mysql_jdbc = callPackage ../servers/sql/mysql/jdbc { };
@ -27278,7 +27269,7 @@ with pkgs;
rethinkdb = callPackage ../servers/nosql/rethinkdb { rethinkdb = callPackage ../servers/nosql/rethinkdb {
stdenv = clangStdenv; stdenv = clangStdenv;
libtool = darwin.cctools; libtool = darwin.cctools;
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
rippled = callPackage ../servers/rippled { rippled = callPackage ../servers/rippled {
@ -28724,7 +28715,7 @@ with pkgs;
sgx-ssl = callPackage ../os-specific/linux/sgx/ssl { }; sgx-ssl = callPackage ../os-specific/linux/sgx/ssl { };
sgx-psw = callPackage ../os-specific/linux/sgx/psw { sgx-psw = callPackage ../os-specific/linux/sgx/psw {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
shadow = callPackage ../os-specific/linux/shadow { }; shadow = callPackage ../os-specific/linux/shadow { };
@ -30494,7 +30485,7 @@ with pkgs;
astroid = callPackage ../applications/networking/mailreaders/astroid { astroid = callPackage ../applications/networking/mailreaders/astroid {
vim = vim-full.override { features = "normal"; }; vim = vim-full.override { features = "normal"; };
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
aucatctl = callPackage ../applications/audio/aucatctl { }; aucatctl = callPackage ../applications/audio/aucatctl { };
@ -32528,7 +32519,7 @@ with pkgs;
}; };
hyperion-ng = libsForQt5.callPackage ../applications/video/hyperion-ng { hyperion-ng = libsForQt5.callPackage ../applications/video/hyperion-ng {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
hyperledger-fabric = callPackage ../tools/misc/hyperledger-fabric { }; hyperledger-fabric = callPackage ../tools/misc/hyperledger-fabric { };
@ -34023,14 +34014,14 @@ with pkgs;
avahi = avahi-compat; avahi = avahi-compat;
pulseSupport = config.pulseaudio or false; pulseSupport = config.pulseaudio or false;
iceSupport = config.murmur.iceSupport or true; iceSupport = config.murmur.iceSupport or true;
protobuf = protobuf3_21; protobuf = protobuf_21;
}).murmur; }).murmur;
mumble = (callPackages ../applications/networking/mumble { mumble = (callPackages ../applications/networking/mumble {
avahi = avahi-compat; avahi = avahi-compat;
jackSupport = config.mumble.jackSupport or false; jackSupport = config.mumble.jackSupport or false;
speechdSupport = config.mumble.speechdSupport or false; speechdSupport = config.mumble.speechdSupport or false;
protobuf = protobuf3_21; protobuf = protobuf_21;
}).mumble; }).mumble;
mumble_overlay = callPackage ../applications/networking/mumble/overlay.nix { mumble_overlay = callPackage ../applications/networking/mumble/overlay.nix {
@ -34158,7 +34149,7 @@ with pkgs;
osm2pgsql = callPackage ../tools/misc/osm2pgsql { }; osm2pgsql = callPackage ../tools/misc/osm2pgsql { };
ostinato = libsForQt5.callPackage ../applications/networking/ostinato { ostinato = libsForQt5.callPackage ../applications/networking/ostinato {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
p4 = callPackage ../applications/version-management/p4 { p4 = callPackage ../applications/version-management/p4 {
@ -34267,7 +34258,7 @@ with pkgs;
shogun = callPackage ../applications/science/machine-learning/shogun { shogun = callPackage ../applications/science/machine-learning/shogun {
opencv = opencv3; opencv = opencv3;
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
smplayer = libsForQt5.callPackage ../applications/video/smplayer { }; smplayer = libsForQt5.callPackage ../applications/video/smplayer { };
@ -34630,7 +34621,7 @@ with pkgs;
osmo-sip-connector = callPackage ../servers/osmocom/osmo-sip-connector { }; osmo-sip-connector = callPackage ../servers/osmocom/osmo-sip-connector { };
osmscout-server = libsForQt5.callPackage ../applications/misc/osmscout-server { osmscout-server = libsForQt5.callPackage ../applications/misc/osmscout-server {
protobuf = protobuf3_21.override { protobuf = protobuf_21.override {
abseil-cpp = abseil-cpp_202103.override { abseil-cpp = abseil-cpp_202103.override {
cxxStandard = "17"; cxxStandard = "17";
}; };
@ -35149,7 +35140,7 @@ with pkgs;
rgp = libsForQt5.callPackage ../development/tools/rgp { }; rgp = libsForQt5.callPackage ../development/tools/rgp { };
ricochet = libsForQt5.callPackage ../applications/networking/instant-messengers/ricochet { ricochet = libsForQt5.callPackage ../applications/networking/instant-messengers/ricochet {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
ries = callPackage ../applications/science/math/ries { }; ries = callPackage ../applications/science/math/ries { };
@ -35472,7 +35463,7 @@ with pkgs;
curaengine = callPackage ../applications/misc/curaengine { curaengine = callPackage ../applications/misc/curaengine {
inherit (python3.pkgs) libarcus; inherit (python3.pkgs) libarcus;
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
cura = libsForQt5.callPackage ../applications/misc/cura { }; cura = libsForQt5.callPackage ../applications/misc/cura { };
@ -35861,7 +35852,7 @@ with pkgs;
tijolo = callPackage ../applications/editors/tijolo { }; tijolo = callPackage ../applications/editors/tijolo { };
tilemaker = callPackage ../applications/misc/tilemaker { tilemaker = callPackage ../applications/misc/tilemaker {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
timbreid = callPackage ../applications/audio/pd-plugins/timbreid { timbreid = callPackage ../applications/audio/pd-plugins/timbreid {
@ -37063,11 +37054,11 @@ with pkgs;
bitcoin-abc = libsForQt5.callPackage ../applications/blockchains/bitcoin-abc { bitcoin-abc = libsForQt5.callPackage ../applications/blockchains/bitcoin-abc {
withGui = true; withGui = true;
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
bitcoind-abc = callPackage ../applications/blockchains/bitcoin-abc { bitcoind-abc = callPackage ../applications/blockchains/bitcoin-abc {
mkDerivation = stdenv.mkDerivation; mkDerivation = stdenv.mkDerivation;
protobuf = protobuf3_21; protobuf = protobuf_21;
withGui = false; withGui = false;
}; };
@ -37642,7 +37633,7 @@ with pkgs;
ckan = callPackage ../games/ckan { }; ckan = callPackage ../games/ckan { };
cockatrice = libsForQt5.callPackage ../games/cockatrice { cockatrice = libsForQt5.callPackage ../games/cockatrice {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
commandergenius = callPackage ../games/commandergenius { }; commandergenius = callPackage ../games/commandergenius { };
@ -38237,12 +38228,12 @@ with pkgs;
pong3d = callPackage ../games/pong3d { }; pong3d = callPackage ../games/pong3d { };
pokerth = libsForQt5.callPackage ../games/pokerth { pokerth = libsForQt5.callPackage ../games/pokerth {
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
pokerth-server = libsForQt5.callPackage ../games/pokerth { pokerth-server = libsForQt5.callPackage ../games/pokerth {
target = "server"; target = "server";
protobuf = protobuf3_21; protobuf = protobuf_21;
}; };
pokete = callPackage ../games/pokete { }; pokete = callPackage ../games/pokete { };
@ -39333,7 +39324,7 @@ with pkgs;
or-tools = callPackage ../development/libraries/science/math/or-tools { or-tools = callPackage ../development/libraries/science/math/or-tools {
python = python3; python = python3;
protobuf = protobuf3_21; protobuf = protobuf_21;
# or-tools builds with -std=c++20, so abseil-cpp must # or-tools builds with -std=c++20, so abseil-cpp must
# also be built that way # also be built that way
abseil-cpp = abseil-cpp_202206.override { abseil-cpp = abseil-cpp_202206.override {

View File

@ -6068,7 +6068,7 @@ self: super: with self; {
}; };
libarcus = callPackage ../development/python-modules/libarcus { libarcus = callPackage ../development/python-modules/libarcus {
protobuf = pkgs.protobuf3_21; protobuf = pkgs.protobuf_21;
}; };
libasyncns = callPackage ../development/python-modules/libasyncns { libasyncns = callPackage ../development/python-modules/libasyncns {
@ -9487,7 +9487,7 @@ self: super: with self; {
# Protobuf 4.x # Protobuf 4.x
protobuf = callPackage ../development/python-modules/protobuf { protobuf = callPackage ../development/python-modules/protobuf {
# If a protobuf upgrade causes many Python packages to fail, please pin it here to the previous version. # If a protobuf upgrade causes many Python packages to fail, please pin it here to the previous version.
protobuf = pkgs.protobuf_24; protobuf = pkgs.protobuf;
}; };
# Protobuf 3.x # Protobuf 3.x