9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{ stdenv, lib, fetchFromGitHub, pkg-config, 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";
|
|
version = "0.14.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lightstep";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1xr11dm94qpbx3nxb7si7zy7hzg2akj01pyxkd8pzzbvmkmic16j";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake pkg-config
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|