From 8805ae08522e2192363814067dd44530582b488a Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 21 Jan 2025 22:22:44 +0100 Subject: add go-instrument --- pkgs/go-instrument/default.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/go-instrument/default.nix (limited to 'pkgs/go-instrument') diff --git a/pkgs/go-instrument/default.nix b/pkgs/go-instrument/default.nix new file mode 100644 index 0000000..950032f --- /dev/null +++ b/pkgs/go-instrument/default.nix @@ -0,0 +1,29 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "go-instrument"; + version = "1.7.0"; + + src = fetchFromGitHub { + owner = "nikolaydubina"; + repo = "go-instrument"; + rev = "v${version}"; + hash = "sha256-0WoID8hYtAu4EJbEgvHtJtE5keq33aGDMjFU9B+MLh8="; + }; + + vendorHash = "sha256-dofJA3Xxf68r4nKv6ocAYgnvOZD8eeezkaXLOqlRI6k="; + + ldflags = [ "-s" "-w" ]; + + meta = { + description = "Automatically add Trace Spans to Go methods and functions"; + homepage = "https://github.com/nikolaydubina/go-instrument"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ alanpearce ]; + mainProgram = "go-instrument"; + }; +} -- cgit 1.4.1