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

View file

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