From e27e6904fe8c0970160aaa2a02b9cfadbd43b58d Mon Sep 17 00:00:00 2001 From: phanirithvij Date: Sat, 14 Dec 2024 07:17:20 +0530 Subject: [PATCH 1/2] golds: 0.7.1 -> 0.7.2 Signed-off-by: phanirithvij --- pkgs/by-name/go/golds/package.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/go/golds/package.nix b/pkgs/by-name/go/golds/package.nix index dee5d2a7b72b6..83f4aaa0ae7ca 100644 --- a/pkgs/by-name/go/golds/package.nix +++ b/pkgs/by-name/go/golds/package.nix @@ -2,19 +2,18 @@ lib, buildGoModule, fetchFromGitHub, - testers, - golds, # self + versionCheckHook, }: buildGoModule rec { pname = "golds"; - version = "0.7.1"; + version = "0.7.2"; src = fetchFromGitHub { owner = "go101"; repo = "golds"; tag = "v${version}"; - hash = "sha256-6YkyKJtSAFFYidMlZXSjNpjyIIaTlibg/QMMin/NbU0="; + hash = "sha256-ExvCVGWYAngasnDHVzBLeLmms4cFNcQ/KzuE4t3r36A="; }; # nixpkgs is not using the go distpack archive and missing a VERSION file in the source @@ -26,10 +25,9 @@ buildGoModule rec { ldflags = [ "-s" ]; - passthru.tests.version = testers.testVersion { - package = golds; - version = "v${version}"; - }; + nativeCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = [ "--version" ]; + doInstallCheck = true; meta = { description = "Experimental Go local docs server/generator and code reader implemented with some fresh ideas"; From 923df37b88191ffa75e4d137c1a97d0774cda0e1 Mon Sep 17 00:00:00 2001 From: phanirithvij Date: Sat, 14 Dec 2024 22:54:21 +0530 Subject: [PATCH 2/2] gocovsh: minor refactor Signed-off-by: phanirithvij --- pkgs/by-name/go/gocovsh/package.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/go/gocovsh/package.nix b/pkgs/by-name/go/gocovsh/package.nix index 8662e1176329b..eecc843a5568a 100644 --- a/pkgs/by-name/go/gocovsh/package.nix +++ b/pkgs/by-name/go/gocovsh/package.nix @@ -2,8 +2,7 @@ lib, buildGoModule, fetchFromGitHub, - testers, - gocovsh, # self + versionCheckHook, }: buildGoModule rec { @@ -26,7 +25,9 @@ buildGoModule rec { "-X main.date=19700101T000000Z" ]; - passthru.tests.version = testers.testVersion { package = gocovsh; }; + nativeCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = [ "--version" ]; + doInstallCheck = true; meta = { description = "Go Coverage in your terminal: a tool for exploring Go Coverage reports from the command line";