2021-01-19 06:50:56 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, pkg-config, cmake
|
2021-03-16 12:25:50 +00:00
|
|
|
, opentracing-cpp, protobuf
|
|
|
|
, enableGrpc ? false, grpc, openssl
|
2017-07-25 01:03:40 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "lightstep-tracer-cpp";
|
2020-09-25 22:13:51 +01:00
|
|
|
version = "0.14.0";
|
2017-07-25 01:03:40 +01: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 22:13:51 +01:00
|
|
|
sha256 = "1xr11dm94qpbx3nxb7si7zy7hzg2akj01pyxkd8pzzbvmkmic16j";
|
2017-07-25 01:03:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
cmake pkg-config
|
2017-07-25 01:03:40 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-03-16 12:25:50 +00:00
|
|
|
opentracing-cpp protobuf
|
2019-11-09 08:45:03 +00:00
|
|
|
] ++ lib.optionals enableGrpc [
|
2021-03-16 12:25:50 +00:00
|
|
|
grpc openssl
|
2017-07-25 01:03:40 +01:00
|
|
|
];
|
|
|
|
|
2019-11-09 08:45:03 +00:00
|
|
|
cmakeFlags = lib.optionals (!enableGrpc) [ "-DWITH_GRPC=OFF" ];
|
|
|
|
|
2017-07-25 01:03:40 +01: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 01:03:40 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|