diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2023-11-05 23:29:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-05 23:29:04 -0500 |
commit | a142296729f22165d31aed0c7d5bcde427852d0e (patch) | |
tree | a8089c648bf4841e2359de8013026fe470c41948 /pkgs | |
parent | ac4410df8b3ea8b0a39dd5725c16fffac50d1c58 (diff) | |
parent | 465706255f1d32e15f8feba2a28e6d4ab5d9fe8b (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.nix | 1 |
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 |