lightstep-tracer-cpp: remove packages which are no longer required after #116317, cleanup ? null

This commit is contained in:
Sandro Jäckel 2021-03-16 13:25:50 +01:00
parent ad72e5fbc3
commit f8c2491184
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 4 additions and 8 deletions

View File

@ -1,12 +1,8 @@
{ stdenv, lib, fetchFromGitHub, pkg-config, cmake { stdenv, lib, fetchFromGitHub, pkg-config, cmake
, opentracing-cpp, protobuf, zlib , opentracing-cpp, protobuf
, enableGrpc ? false, grpc ? null, openssl ? null, c-ares ? null , enableGrpc ? false, grpc, openssl
}: }:
assert enableGrpc -> grpc != null;
assert enableGrpc -> openssl != null;
assert enableGrpc -> c-ares != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "lightstep-tracer-cpp"; pname = "lightstep-tracer-cpp";
version = "0.14.0"; version = "0.14.0";
@ -23,9 +19,9 @@ stdenv.mkDerivation rec {
]; ];
buildInputs = [ buildInputs = [
opentracing-cpp protobuf zlib opentracing-cpp protobuf
] ++ lib.optionals enableGrpc [ ] ++ lib.optionals enableGrpc [
grpc openssl c-ares c-ares.cmake-config grpc openssl
]; ];
cmakeFlags = lib.optionals (!enableGrpc) [ "-DWITH_GRPC=OFF" ]; cmakeFlags = lib.optionals (!enableGrpc) [ "-DWITH_GRPC=OFF" ];