From d5083f0888cea55949b26b6e6c76362f4ef71fe4 Mon Sep 17 00:00:00 2001 From: eljamm Date: Thu, 24 Oct 2024 17:39:28 +0100 Subject: [PATCH] gotestdox: init at 0.2.2 --- pkgs/by-name/go/gotestdox/package.nix | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/by-name/go/gotestdox/package.nix diff --git a/pkgs/by-name/go/gotestdox/package.nix b/pkgs/by-name/go/gotestdox/package.nix new file mode 100644 index 000000000000..c9a0c55ccf92 --- /dev/null +++ b/pkgs/by-name/go/gotestdox/package.nix @@ -0,0 +1,35 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + nix-update-script, +}: + +buildGoModule rec { + pname = "gotestdox"; + version = "0.2.2"; + + src = fetchFromGitHub { + owner = "bitfield"; + repo = "gotestdox"; + rev = "v${version}"; + hash = "sha256-AZDXMwADOjcaMiofMWoHp+eSnD3a8iFtwpWDKl9Ess8="; + }; + + vendorHash = "sha256-kDSZ4RZTHDFmu7ernYRjg0PV7eBB2lH8q5wW3kTExDs="; + + ldflags = [ + "-s" + "-w" + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Tool for formatting Go test results as readable documentation"; + homepage = "https://github.com/bitfield/gotestdox"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ eljamm ]; + mainProgram = "gotestdox"; + }; +}