grpc: fix build input propagation

This commit is contained in:
Hedtke, Moritz 2021-03-14 00:15:33 +01:00
parent 7d804ec169
commit cf6f9748b7
No known key found for this signature in database
GPG Key ID: 6794D45A488C2EDE
2 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@
, speechdSupport ? false, speechd
, pulseSupport ? false, libpulseaudio
, iceSupport ? false, zeroc-ice
, grpcSupport ? false, grpc, c-ares, abseil-cpp, which
, grpcSupport ? false, grpc, which
, nixosTests
}:
@ -115,7 +115,7 @@ let
buildInputs = [ libcap ]
++ lib.optional iceSupport zeroc-ice
++ lib.optionals grpcSupport [ grpc c-ares abseil-cpp which ];
++ lib.optionals grpcSupport [ grpc which ];
installPhase = ''
# bin stuff

View File

@ -21,7 +21,8 @@ stdenv.mkDerivation rec {
];
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ zlib c-ares c-ares.cmake-config re2 openssl protobuf gflags ]
propagatedBuildInputs = [ c-ares re2 zlib ];
buildInputs = [ c-ares.cmake-config openssl protobuf gflags ]
++ lib.optionals stdenv.isLinux [ libnsl ];
cmakeFlags =