gopass: use versionCheckHook
This commit is contained in:
@@ -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 { };
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user