scmpuff: switch to versionCheckHook

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss
2025-08-15 00:21:21 +02:00
parent e4e6cfa552
commit 82cb3f1c8a
+4 -6
View File
@@ -2,8 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
testers,
scmpuff,
versionCheckHook,
}:
buildGoModule rec {
@@ -25,10 +24,9 @@ buildGoModule rec {
"-X main.VERSION=${version}"
];
passthru.tests.version = testers.testVersion {
package = scmpuff;
command = "scmpuff version";
};
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "version";
meta = with lib; {
description = "Add numbered shortcuts to common git commands";