Merge pull request #41371 from jbaum98/pass-import-fix

pass-import: fix environment bugs
This commit is contained in:
xeji 2018-06-02 19:39:08 +02:00 committed by GitHub
commit 32ff88cab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,13 +18,18 @@ in stdenv.mkDerivation rec {
buildInputs = [ pythonEnv ];
patchPhase = ''
sed -i -e 's|$0|${pass}/bin/pass|' import.bash
'';
dontBuild = true;
installFlags = [ "PREFIX=$(out)" ];
postFixup = ''
wrapProgram $out/lib/password-store/extensions/import.bash \
--prefix PATH : "${pythonEnv}/bin"
--prefix PATH : "${pythonEnv}/bin" \
--run "export PREFIX"
'';
meta = with stdenv.lib; {