Commit eff67468 authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

gopass: use `versionCheckHook`

parent e4214004
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -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 { };
  };