2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, pkgconfig, cmake
|
|
|
|
, opentracing-cpp, protobuf, zlib
|
|
|
|
, enableGrpc ? false, grpc ? null, openssl ? null, c-ares ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert enableGrpc -> grpc != null;
|
|
|
|
assert enableGrpc -> openssl != null;
|
|
|
|
assert enableGrpc -> c-ares != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lightstep-tracer-cpp";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "0.13.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lightstep";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "0d7z9isf0n8s63mvp3j75949w0yv7jsva29i62lq8yxbym688fxb";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake pkgconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
opentracing-cpp protobuf zlib
|
|
|
|
] ++ lib.optionals enableGrpc [
|
|
|
|
grpc openssl c-ares c-ares.cmake-config
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = lib.optionals (!enableGrpc) [ "-DWITH_GRPC=OFF" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Distributed tracing system built on top of the OpenTracing standard";
|
|
|
|
homepage = "https://lightstep.com/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
};
|
|
|
|
}
|