pass-import: export PREFIX, set PASSWORD_STORE_BIN

This commit is contained in:
Jake Waksbaum 2018-06-01 14:14:12 -04:00
parent e126a8c8a5
commit 7d49699b70

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; {