Skip to content

Commit af96b25

Browse files
committed
fix: add dynamic lookup darwin patch for grpc derivation
1 parent 63d9a41 commit af96b25

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

nix/grpc.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
python3,
2020
arrow-cpp,
2121
}:
22+
let
23+
dynamic-lookup-darwin-patch = fetchpatch {
24+
url = "https://raw.githubusercontent.com/NixOS/nixpkgs/c2525c85faca142c7cc49b4a163334aa92daac11/pkgs/by-name/gr/grpc/dynamic-lookup-darwin.patch";
25+
hash = "sha256-JwEXAc6JmKUvIQjaOPLtCjatM/fLqldvccK2kG01kwY=";
26+
};
27+
in
2228

2329
# This package should be updated together with all related python grpc packages
2430
# to ensure compatibility.
@@ -50,7 +56,7 @@ stdenv.mkDerivation rec {
5056
hash = "sha256-Lm0GQsz/UjBbXXEE14lT0dcRzVmCKycrlrdBJj+KLu8=";
5157
})
5258
# fix build of 1.63.0 and newer on darwin: https://github.com/grpc/grpc/issues/36654
53-
] ++ (lib.optional stdenv.hostPlatform.isDarwin ./dynamic-lookup-darwin.patch);
59+
] ++ (lib.optional stdenv.hostPlatform.isDarwin dynamic-lookup-darwin-patch);
5460

5561
nativeBuildInputs = [
5662
cmake

0 commit comments

Comments
 (0)