Skip to content

Commit

Permalink
gocovsh: minor refactor
Browse files Browse the repository at this point in the history
Signed-off-by: phanirithvij <[email protected]>
  • Loading branch information
phanirithvij committed Dec 14, 2024
1 parent e27e690 commit 923df37
Showing 1 changed file with 4 additions and 3 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

0 comments on commit 923df37

Please sign in to comment.