mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
Merge pull request #41371 from jbaum98/pass-import-fix
pass-import: fix environment bugs
This commit is contained in:
commit
32ff88cab2
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user