protobuf3: 21.12 -> 24.4

This commit is contained in:
Tobias Mayer 2023-07-20 20:19:31 +02:00
parent dc5cd92e50
commit 9e397b9d00
No known key found for this signature in database
GPG key ID: F8657E90819A1298
3 changed files with 10 additions and 5 deletions

View file

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

View file

@ -72,12 +72,10 @@ let
zlib
];
# After 3.20, CMakeLists.txt can now be found at the top-level, however
# a stub cmake/CMakeLists.txt still exists for compatibility with previous build assumptions
cmakeDir = "../cmake";
cmakeDir = if lib.versionOlder version "3.22" then "../cmake" else null;
cmakeFlags = [
"-Dprotobuf_ABSL_PROVIDER=package"
] ++ lib.optionals (!stdenv.targetPlatform.isStatic) [
] ++ lib.optionals (!stdenv.targetPlatform.isStatic) [
"-Dprotobuf_BUILD_SHARED_LIBS=ON"
]
# Tests fail to build on 32-bit platforms; fixed in 3.22

View file

@ -24162,8 +24162,9 @@ with pkgs;
prospector = callPackage ../development/tools/prospector { };
protobuf = protobuf3_21;
protobuf = protobuf3_23;
protobuf3_23 = callPackage ../development/libraries/protobuf/3.23.nix { };
protobuf3_21 = callPackage ../development/libraries/protobuf/3.21.nix {
abseil-cpp = abseil-cpp_202103;
};