3
0
Fork 0
forked from mirrors/nixpkgs

bup: add ${git} to the $PATH of the wrapper

Otherwise, bup tries to run git from the user's PATH, which may or may not
exist.

Closes #15691
This commit is contained in:
Florent Becker 2016-05-25 10:53:35 +02:00 committed by Joachim Fasting
parent 89aab4f351
commit d7749f27f3
No known key found for this signature in database
GPG key ID: 4330820E1E04DCF4

View file

@ -42,8 +42,8 @@ stdenv.mkDerivation rec {
"LIBDIR=$(out)/lib/bup" "LIBDIR=$(out)/lib/bup"
]; ];
postInstall = optionalString (elem stdenv.system platforms.linux) '' postInstall = ''wrapProgram $out/bin/bup --prefix PATH : ${git}/bin ''
wrapProgram $out/bin/bup --prefix PYTHONPATH : \ + optionalString (elem stdenv.system platforms.linux) '' --prefix PYTHONPATH : \
${stdenv.lib.concatStringsSep ":" ${stdenv.lib.concatStringsSep ":"
(map (path: "$(toPythonPath ${path})") [ pyxattr pylibacl setuptools fuse ])} (map (path: "$(toPythonPath ${path})") [ pyxattr pylibacl setuptools fuse ])}
''; '';