diff options
author | Jan Malakhovski <oxij@oxij.org> | 2018-08-08 21:41:34 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2018-08-11 09:35:29 +0000 |
commit | c2d335fb07621c94e56614c69be91940ad31f69a (patch) | |
tree | 87b8fdceaf41fb892ca93d5e00a468e59e7842ae /pkgs/tools/security/pass | |
parent | 3b16f3d46765a29e94d0e22579da722756def0b8 (diff) | |
download | nixpkgs-c2d335fb07621c94e56614c69be91940ad31f69a.tar nixpkgs-c2d335fb07621c94e56614c69be91940ad31f69a.tar.gz nixpkgs-c2d335fb07621c94e56614c69be91940ad31f69a.tar.bz2 nixpkgs-c2d335fb07621c94e56614c69be91940ad31f69a.tar.lz nixpkgs-c2d335fb07621c94e56614c69be91940ad31f69a.tar.xz nixpkgs-c2d335fb07621c94e56614c69be91940ad31f69a.tar.zst nixpkgs-c2d335fb07621c94e56614c69be91940ad31f69a.zip |
pass: convert check to installcheck, fix tests
Diffstat (limited to 'pkgs/tools/security/pass')
-rw-r--r-- | pkgs/tools/security/pass/default.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/tools/security/pass/default.nix b/pkgs/tools/security/pass/default.nix index 007414d68a5..e7a3d2e0759 100644 --- a/pkgs/tools/security/pass/default.nix +++ b/pkgs/tools/security/pass/default.nix @@ -87,6 +87,24 @@ let --prefix PATH : "$out/bin:${wrapperPath}" ''; + # Turn "check" into "installcheck", since we want to test our pass, + # not the one before the fixup. + postPatch = '' + patchShebangs tests + + # the turning + sed -i -e 's@^PASS=.*''$@PASS=$out/bin/pass@' \ + -e 's@^GPGS=.*''$@GPG=${gnupg}/bin/gpg2@' \ + -e '/which gpg/ d' \ + tests/setup.sh + ''; + + doCheck = false; + + doInstallCheck = true; + installCheckInputs = [ git ]; + installCheckTarget = "test"; + passthru = { extensions = passExtensions; } // extraPassthru; |