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

View File

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