15 opentelemetry-proto = fetchFromGitHub {
16 owner = "open-telemetry";
17 repo = "opentelemetry-proto";
19 hash = "sha256-bkVqPSVhyMHrmFvlI9DTAloZzDozj3sefIEwfW7OVrI=";
22 stdenv.mkDerivation (finalAttrs: {
23 pname = "opentelemetry-cpp";
26 src = fetchFromGitHub {
27 owner = "open-telemetry";
28 repo = "opentelemetry-cpp";
29 rev = "v${finalAttrs.version}";
30 hash = "sha256-31zwIZ4oehhfn+oCyg8VQTurPOmdgp72plH1Pf/9UKQ=";
34 ./0001-Disable-tests-requiring-network-access.patch
35 ] ++ lib.optional stdenv.isDarwin ./0002-Disable-segfaulting-test-on-Darwin.patch;
37 nativeBuildInputs = [ cmake ];
56 "-DBUILD_SHARED_LIBS=ON"
60 "-DWITH_PROMETHEUS=ON"
61 "-DWITH_ELASTICSEARCH=ON"
63 "-DWITH_BENCHMARK=OFF"
64 "-DOTELCPP_PROTO_PATH=${opentelemetry-proto}"
67 outputs = [ "out" "dev" ];
69 passthru.updateScript = nix-update-script { };
72 description = "OpenTelemetry C++ Client Library";
73 homepage = "https://github.com/open-telemetry/opentelemetry-cpp";
74 license = [ lib.licenses.asl20 ];
75 maintainers = with lib.maintainers; [ jfroche ];
76 platforms = lib.platforms.linux;
77 # https://github.com/protocolbuffers/protobuf/issues/14492
78 broken = !(stdenv.buildPlatform.canExecute stdenv.hostPlatform);