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