Merge pull request #299620 from dotlambda/passExtensions.pass-audit

passExtensions.pass-audit: fix tests
This commit is contained in:
Robert Schütz 2024-03-29 16:34:35 +00:00 committed by GitHub
commit e5d16f61b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ in stdenv.mkDerivation rec {
owner = "roddhjav";
repo = "pass-audit";
rev = "v${version}";
sha256 = "sha256-xigP8LxRXITLF3X21zhWx6ooFNSTKGv46yFSt1dd4vs=";
hash = "sha256-xigP8LxRXITLF3X21zhWx6ooFNSTKGv46yFSt1dd4vs=";
};
patches = [
@ -21,9 +21,9 @@ in stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace audit.bash \
--replace 'python3' "${pythonEnv}/bin/python3"
--replace-fail 'python3' "${pythonEnv.interpreter}"
substituteInPlace Makefile \
--replace "install --root" "install --prefix ''' --root"
--replace-fail "install --root" "install --prefix ''' --root"
'';
outputs = [ "out" "man" ];
@ -35,7 +35,7 @@ in stdenv.mkDerivation rec {
doCheck = !stdenv.isDarwin;
nativeCheckInputs = [ pythonPackages.green pass gnupg ];
checkPhase = ''
${pythonEnv}/bin/python3 setup.py green -q
${pythonEnv.interpreter} -m green -q
'';
installFlags = [ "DESTDIR=${placeholder "out"}" "PREFIX=" ];