grpc: 1.57.0 -> 1.59.1
This commit is contained in:
parent
17d1b7e38e
commit
805cac42cb
2 changed files with 12 additions and 19 deletions
|
@ -21,7 +21,7 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "grpc";
|
||||
version = "1.57.0"; # N.B: if you change this, please update:
|
||||
version = "1.59.1"; # N.B: if you change this, please update:
|
||||
# pythonPackages.grpcio-tools
|
||||
# pythonPackages.grpcio-status
|
||||
|
||||
|
@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
|
|||
owner = "grpc";
|
||||
repo = "grpc";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-ZPhPi4ODAAohCySVKeypaDID4ZUXvnfidOGK5EMXvh4=";
|
||||
hash = "sha256-4bou7oFQOgyxjFqJdmiFT8xEMCsOap9v34W6SPrT4WQ=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
|
@ -37,14 +37,8 @@ stdenv.mkDerivation rec {
|
|||
(fetchpatch {
|
||||
# armv6l support, https://github.com/grpc/grpc/pull/21341
|
||||
name = "grpc-link-libatomic.patch";
|
||||
url = "https://github.com/lopsided98/grpc/commit/164f55260262c816e19cd2c41b564486097d62fe.patch";
|
||||
hash = "sha256-d6kMyjL5ZnEnEz4XZfRgXJBH53gp1r7q1tlwh+HM6+Y=";
|
||||
})
|
||||
# Fix generated CMake config file
|
||||
# FIXME: remove when merged
|
||||
(fetchpatch {
|
||||
url = "https://github.com/grpc/grpc/pull/33361/commits/117dc80eb43021dd5619023ef6d02d0d6ec7ae7a.patch";
|
||||
hash = "sha256-VBk3ZD5h9uOQVN0st+quUQK/wXqvfFNk8G8AN4f2MQo=";
|
||||
url = "https://github.com/lopsided98/grpc/commit/a9b917666234f5665c347123d699055d8c2537b2.patch";
|
||||
hash = "sha256-Lm0GQsz/UjBbXXEE14lT0dcRzVmCKycrlrdBJj+KLu8=";
|
||||
})
|
||||
];
|
||||
|
||||
|
@ -94,13 +88,12 @@ stdenv.mkDerivation rec {
|
|||
export LD_LIBRARY_PATH=$(pwd)''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH
|
||||
'';
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = lib.concatStringsSep " " (
|
||||
lib.optionals stdenv.cc.isClang [
|
||||
"-Wno-error=unknown-warning-option"
|
||||
] ++ lib.optionals stdenv.isAarch64 [
|
||||
"-Wno-error=format-security"
|
||||
]
|
||||
);
|
||||
env.NIX_CFLAGS_COMPILE = toString ([
|
||||
"-Wno-error"
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
# Workaround for https://github.com/llvm/llvm-project/issues/48757
|
||||
"-Wno-elaborated-enum-base"
|
||||
]);
|
||||
|
||||
enableParallelBuilds = true;
|
||||
|
||||
|
|
|
@ -21784,10 +21784,10 @@ with pkgs;
|
|||
|
||||
grilo-plugins = callPackage ../development/libraries/grilo-plugins { };
|
||||
|
||||
grpc = callPackage ../development/libraries/grpc {
|
||||
grpc = darwin.apple_sdk_11_0.callPackage ../development/libraries/grpc {
|
||||
stdenv = if (stdenv.isDarwin && stdenv.isx86_64) then
|
||||
# Work around Clang check for 10.13 when using aligned allocations with C++17.
|
||||
stdenv.override (old: {
|
||||
darwin.apple_sdk_11_0.stdenv.override (old: {
|
||||
hostPlatform = old.hostPlatform // { darwinMinVersion = "10.13"; };
|
||||
buildPlatform = old.buildPlatform // { darwinMinVersion = "10.13"; };
|
||||
targetPlatform = old.targetPlatform // { darwinMinVersion = "10.13"; };
|
||||
|
|
Loading…
Reference in a new issue