depot/third_party/nixpkgs/pkgs/development/libraries/lightstep-tracer-cpp/default.nix
Default email 48af15f7a5 Project import generated by Copybara.
GitOrigin-RevId: 04a2b269d8921505a2969fc9ec25c1f517f2b307
2021-03-20 04:20:00 +00:00

36 lines
861 B
Nix

{ stdenv, lib, fetchFromGitHub, pkg-config, cmake
, opentracing-cpp, protobuf
, enableGrpc ? false, grpc, openssl
}:
stdenv.mkDerivation rec {
pname = "lightstep-tracer-cpp";
version = "0.14.0";
src = fetchFromGitHub {
owner = "lightstep";
repo = pname;
rev = "v${version}";
sha256 = "1xr11dm94qpbx3nxb7si7zy7hzg2akj01pyxkd8pzzbvmkmic16j";
};
nativeBuildInputs = [
cmake pkg-config
];
buildInputs = [
opentracing-cpp protobuf
] ++ lib.optionals enableGrpc [
grpc openssl
];
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 ];
};
}