Skip to content

Commit

Permalink
golds: 0.7.1 -> 0.7.2, gocovsh: minor refactor (#365107)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Dec 14, 2024
2 parents 57d5ec0 + 923df37 commit 3d9b0a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
7 changes: 4 additions & 3 deletions pkgs/by-name/go/gocovsh/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
testers,
gocovsh, # self
versionCheckHook,
}:

buildGoModule rec {
Expand All @@ -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";
Expand Down
14 changes: 6 additions & 8 deletions pkgs/by-name/go/golds/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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";
Expand Down

0 comments on commit 3d9b0a8

Please sign in to comment.