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