2019-11-09 08:45:03 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, pkgconfig, cmake
|
|
|
|
, opentracing-cpp, protobuf, zlib
|
|
|
|
, enableGrpc ? false, grpc ? null, openssl ? null, c-ares ? null
|
2017-07-25 01:03:40 +01: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 01:03:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "lightstep-tracer-cpp";
|
2020-05-28 07:23:42 +01:00
|
|
|
version = "0.13.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-05-28 07:23:42 +01:00
|
|
|
sha256 = "0d7z9isf0n8s63mvp3j75949w0yv7jsva29i62lq8yxbym688fxb";
|
2017-07-25 01:03:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2019-11-09 08:45:03 +00:00
|
|
|
cmake pkgconfig
|
2017-07-25 01:03:40 +01: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 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 ];
|
|
|
|
};
|
|
|
|
}
|