diff options
author | Charles Strahan <charles@cstrahan.com> | 2017-07-24 20:03:40 -0400 |
---|---|---|
committer | Charles Strahan <charles@cstrahan.com> | 2017-08-03 00:38:33 -0400 |
commit | cd2b6a94f779f2819b6345bc0718f6a780d84f1b (patch) | |
tree | a8a35154121b2e24e66c1cdca4f39da716f3cd2e /pkgs/development/libraries/lightstep-tracer-cpp | |
parent | f281cfe76d30a3d1aa26c3c168d367900a995b58 (diff) | |
download | nixlib-cd2b6a94f779f2819b6345bc0718f6a780d84f1b.tar nixlib-cd2b6a94f779f2819b6345bc0718f6a780d84f1b.tar.gz nixlib-cd2b6a94f779f2819b6345bc0718f6a780d84f1b.tar.bz2 nixlib-cd2b6a94f779f2819b6345bc0718f6a780d84f1b.tar.lz nixlib-cd2b6a94f779f2819b6345bc0718f6a780d84f1b.tar.xz nixlib-cd2b6a94f779f2819b6345bc0718f6a780d84f1b.tar.zst nixlib-cd2b6a94f779f2819b6345bc0718f6a780d84f1b.zip |
lightstep-tracer-cpp: init at 0.36
The LightStep distributed tracing library for C++. See: http://lightstep.com
Diffstat (limited to 'pkgs/development/libraries/lightstep-tracer-cpp')
-rw-r--r-- | pkgs/development/libraries/lightstep-tracer-cpp/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/development/libraries/lightstep-tracer-cpp/default.nix b/pkgs/development/libraries/lightstep-tracer-cpp/default.nix new file mode 100644 index 000000000000..e13796229ce1 --- /dev/null +++ b/pkgs/development/libraries/lightstep-tracer-cpp/default.nix @@ -0,0 +1,52 @@ +{ stdenv, lib, fetchFromGitHub, pkgconfig, protobuf3_2, automake +, autoreconfHook, zlib +, enableGrpc ? false +}: + +let + # be sure to use the right revision based on the submodule! + common = + fetchFromGitHub { + owner = "lightstep"; + repo = "lightstep-tracer-common"; + rev = "fe1f65f4a221746f9fffe8bf544c81d4e1b8aded"; + sha256 = "1qqpjxfrjmhnhs15nhbfv28fsgzi57vmfabxlzc99j4vl78h5iln"; + }; + +in + +stdenv.mkDerivation rec { + name = "lightstep-tracer-cpp-${version}"; + version = "0.36"; + + src = fetchFromGitHub { + owner = "lightstep"; + repo = "lightstep-tracer-cpp"; + rev = "v0_36"; + sha256 = "1sfj91bn7gw7fga7xawag076c8j9l7kiwhm4x3zh17qhycmaqq16"; + }; + + postUnpack = '' + cp -r ${common}/* $sourceRoot/lightstep-tracer-common + ''; + + preConfigure = lib.optionalString (!enableGrpc) '' + configureFlagsArray+=("--disable-grpc") + ''; + + nativeBuildInputs = [ + pkgconfig automake autoreconfHook + ]; + + buildInputs = [ + protobuf3_2 zlib + ]; + + meta = with lib; { + description = "Distributed tracing system built on top of the OpenTracing standard"; + homepage = "http://lightstep.com/"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ cstrahan ]; + }; +} |