From 6140a39a99df2bada2bcc746de61ed8ad6304f10 Mon Sep 17 00:00:00 2001 From: Uri Baghin Date: Sun, 16 May 2021 21:38:04 +1000 Subject: [PATCH] opentelemetry-collector: init at 0.26.0 --- .../misc/opentelemetry-collector/default.nix | 30 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/tools/misc/opentelemetry-collector/default.nix diff --git a/pkgs/tools/misc/opentelemetry-collector/default.nix b/pkgs/tools/misc/opentelemetry-collector/default.nix new file mode 100644 index 000000000000..133d17784b00 --- /dev/null +++ b/pkgs/tools/misc/opentelemetry-collector/default.nix @@ -0,0 +1,30 @@ +{ buildGoModule +, fetchFromGitHub +, stdenv +, lib +}: + +buildGoModule rec { + pname = "opentelemetry-collector"; + version = "0.26.0"; + + src = fetchFromGitHub { + owner = "open-telemetry"; + repo = "${pname}-contrib"; + rev = "v${version}"; + sha256 = "03713b4bkhcz61maz0r5mkd36kv3rq8rji3qcpi9zf5bkkjs1yzb"; + }; + + vendorSha256 = if stdenv.isDarwin + then "0anw3l6pq8yys2g2607ndhklb9m1i9krgjrw4wb99igavjzp3wpj" + else "04h463d2d7g6wqp5mzkqlszwzdbq0pix6j7n2s9s80lwg7nh8k3h"; + + subPackages = [ "cmd/otelcontribcol" ]; + + meta = with lib; { + homepage = "https://github.com/open-telemetry/opentelemetry-collector"; + description = "OpenTelemetry Collector"; + license = licenses.asl20; + maintainers = [ maintainers.uri-canva ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7b141f19069e..c632a2f83382 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7360,6 +7360,8 @@ in opae = callPackage ../development/libraries/opae { }; + opentelemetry-collector = callPackage ../tools/misc/opentelemetry-collector { }; + opentracing-cpp = callPackage ../development/libraries/opentracing-cpp { }; openvswitch = callPackage ../os-specific/linux/openvswitch { };