2021-01-19 06:50:56 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, pkg-config, cmake
|
2019-11-09 08:45:03 +00:00
|
|
|
, opentracing-cpp, protobuf, zlib
|
|
|
|
, enableGrpc ? false, grpc ? null, openssl ? null, c-ares ? null
|
2017-07-25 00:03:40 +00:00
|
|
|
}:
|
|
|
|
|
2019-11-09 08:45:03 +00:00
|
|
|
assert enableGrpc -> grpc != null;
|
|
|
|
assert enableGrpc -> openssl != null;
|
|
|
|
assert enableGrpc -> c-ares != null;
|
2017-07-25 00:03:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "lightstep-tracer-cpp";
|
2020-09-25 21:13:51 +00:00
|
|
|
version = "0.14.0";
|
2017-07-25 00:03:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lightstep";
|
2019-11-09 08:45:03 +00:00
|
|
|
repo = pname;
|
2018-11-01 02:05:59 +00:00
|
|
|
rev = "v${version}";
|
2020-09-25 21:13:51 +00:00
|
|
|
sha256 = "1xr11dm94qpbx3nxb7si7zy7hzg2akj01pyxkd8pzzbvmkmic16j";
|
2017-07-25 00:03:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
cmake pkg-config
|
2017-07-25 00:03:40 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-11-09 08:45:03 +00:00
|
|
|
opentracing-cpp protobuf zlib
|
|
|
|
] ++ lib.optionals enableGrpc [
|
|
|
|
grpc openssl c-ares c-ares.cmake-config
|
2017-07-25 00:03:40 +00:00
|
|
|
];
|
|
|
|
|
2019-11-09 08:45:03 +00:00
|
|
|
cmakeFlags = lib.optionals (!enableGrpc) [ "-DWITH_GRPC=OFF" ];
|
|
|
|
|
2017-07-25 00:03:40 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Distributed tracing system built on top of the OpenTracing standard";
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = "https://lightstep.com/";
|
2017-07-25 00:03:40 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|