silx: 2.1.1 -> 2.1.2 (#361612)
[NixPkgs.git] / pkgs / by-name / ot / otel-desktop-viewer / package.nix
blob6c91d577474360dbba4b8bc16b0b41526ea5671d
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , testers
5 , otel-desktop-viewer
6 , stdenv
7 , apple-sdk_12
8 }:
10 buildGoModule rec {
11   pname = "otel-desktop-viewer";
12   version = "0.1.4";
14   src = fetchFromGitHub {
15     owner = "CtrlSpice";
16     repo = "otel-desktop-viewer";
17     rev = "v${version}";
18     hash = "sha256-kMgcco4X7X9WoCCH8iZz5qGr/1dWPSeQOpruTSUnonI=";
19   };
21   # https://github.com/CtrlSpice/otel-desktop-viewer/issues/139
22   patches = [ ./version-0.1.4.patch ];
24   subPackages = [ "..." ];
26   vendorHash = "sha256-pH16DCYeW8mdnkkRi0zqioovZu9slVc3gAdhMYu2y98=";
28   ldflags = [ "-s" "-w" ];
30   buildInputs = lib.optional stdenv.hostPlatform.isDarwin apple-sdk_12;
32   passthru.tests.version = testers.testVersion {
33     inherit version;
34     package = otel-desktop-viewer;
35     command = "otel-desktop-viewer --version";
36   };
38   meta = with lib; {
39     changelog = "https://github.com/CtrlSpice/otel-desktop-viewer/releases/tag/v${version}";
40     description = "Receive & visualize OpenTelemtry traces locally within one CLI tool";
41     homepage = "https://github.com/CtrlSpice/otel-desktop-viewer";
42     license = licenses.asl20;
43     maintainers = with maintainers; [ gaelreyrol ];
44     mainProgram = "otel-desktop-viewer";
45   };