diff options
author | Emily Trau <13267947+emilytrau@users.noreply.github.com> | 2023-11-29 18:36:14 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-29 18:36:14 +1100 |
commit | 359079a1b0c07d78fb2dd1a6117fbc2ac0c7a4ca (patch) | |
tree | 57ce8f34ffe605851e4fdc4b5d39625ee2c12690 /pkgs/by-name/ot | |
parent | df8ca0b26296d34cb7d45a66f0e6b7ad36110cc7 (diff) | |
parent | 8a06588ed46c1fcae97881d154106ebea1a9d76c (diff) |
Merge pull request #265436 from gaelreyrol/otel-desktop-viewer-init
otel-desktop-viewer: init at 0.1.4
Diffstat (limited to 'pkgs/by-name/ot')
-rw-r--r-- | pkgs/by-name/ot/otel-desktop-viewer/package.nix | 42 | ||||
-rw-r--r-- | pkgs/by-name/ot/otel-desktop-viewer/version-0.1.4.patch | 13 |
2 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/by-name/ot/otel-desktop-viewer/package.nix b/pkgs/by-name/ot/otel-desktop-viewer/package.nix new file mode 100644 index 0000000000000..e8dc8f1844355 --- /dev/null +++ b/pkgs/by-name/ot/otel-desktop-viewer/package.nix @@ -0,0 +1,42 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, testers +, otel-desktop-viewer +}: + +buildGoModule rec { + pname = "otel-desktop-viewer"; + version = "0.1.4"; + + src = fetchFromGitHub { + owner = "CtrlSpice"; + repo = "otel-desktop-viewer"; + rev = "v${version}"; + hash = "sha256-kMgcco4X7X9WoCCH8iZz5qGr/1dWPSeQOpruTSUnonI="; + }; + + # https://github.com/CtrlSpice/otel-desktop-viewer/issues/139 + patches = [ ./version-0.1.4.patch ]; + + subPackages = [ "..." ]; + + vendorHash = "sha256-pH16DCYeW8mdnkkRi0zqioovZu9slVc3gAdhMYu2y98="; + + ldflags = [ "-s" "-w" ]; + + passthru.tests.version = testers.testVersion { + inherit version; + package = otel-desktop-viewer; + command = "otel-desktop-viewer --version"; + }; + + meta = with lib; { + changelog = "https://github.com/CtrlSpice/otel-desktop-viewer/releases/tag/v${version}"; + description = "Receive & visualize OpenTelemtry traces locally within one CLI tool"; + homepage = "https://github.com/CtrlSpice/otel-desktop-viewer"; + license = licenses.asl20; + maintainers = with maintainers; [ gaelreyrol ]; + mainProgram = "otel-desktop-viewer"; + }; +} diff --git a/pkgs/by-name/ot/otel-desktop-viewer/version-0.1.4.patch b/pkgs/by-name/ot/otel-desktop-viewer/version-0.1.4.patch new file mode 100644 index 0000000000000..64d96583efc21 --- /dev/null +++ b/pkgs/by-name/ot/otel-desktop-viewer/version-0.1.4.patch @@ -0,0 +1,13 @@ +diff --git a/main.go b/main.go +index 7e43908..062385c 100644 +--- a/main.go ++++ b/main.go +@@ -15,7 +15,7 @@ func main() { + info := component.BuildInfo{ + Command: "otel-desktop-viewer", + Description: "Basic OTel with Custom Desktop Exporter", +- Version: "0.1.1", ++ Version: "0.1.4", + } + + if err := run(info); err != nil { |