about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2023-11-05 23:29:04 -0500
committerGitHub <noreply@github.com>2023-11-05 23:29:04 -0500
commita142296729f22165d31aed0c7d5bcde427852d0e (patch)
treea8089c648bf4841e2359de8013026fe470c41948 /pkgs
parentac4410df8b3ea8b0a39dd5725c16fffac50d1c58 (diff)
parent465706255f1d32e15f8feba2a28e6d4ab5d9fe8b (diff)
Merge pull request #265684 from notalltim/grpc-cross-build-cpp-plugin
grpc: explicitly use the build platform for `grpc_cpp_plugin`
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/grpc/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/libraries/grpc/default.nix b/pkgs/development/libraries/grpc/default.nix
index 0532907ac153e..84c3abd575ce7 100644
--- a/pkgs/development/libraries/grpc/default.nix
+++ b/pkgs/development/libraries/grpc/default.nix
@@ -64,6 +64,7 @@ stdenv.mkDerivation rec {
     "-DBUILD_SHARED_LIBS=ON"
   ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
     "-D_gRPC_PROTOBUF_PROTOC_EXECUTABLE=${buildPackages.protobuf}/bin/protoc"
+    "-D_gRPC_CPP_PLUGIN=${buildPackages.grpc}/bin/grpc_cpp_plugin"
   ]
   # The build scaffold defaults to c++14 on darwin, even when the compiler uses
   # a more recent c++ version by default [1]. However, downgrades are