gopass: use versionCheckHook

This commit is contained in:
Pol Dellaiera
2025-09-16 11:54:45 +02:00
parent e421400448
commit eff6746848
+6 -6
View File
@@ -11,9 +11,8 @@
wl-clipboard,
passAlias ? false,
apple-sdk_14,
testers,
nix-update-script,
gopass,
versionCheckHook,
}:
let
@@ -76,13 +75,14 @@ buildGoModule (finalAttrs: {
--prefix PATH : "${wrapperPath}" \
--set GOPASS_NO_REMINDER true
'';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
passthru = {
inherit wrapperPath;
tests.version = testers.testVersion {
package = gopass;
};
updateScript = nix-update-script { };
};