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
commitd7749f27f3df976be82eef36f2dbc4b13de5ad9d
authorFlorent Becker <Florent.Becker@ens-lyon.org>
dateWed 25 May 2016, 10:53 (11 years ago)
parent89aab4f
pkgs/tools/backup/bup/default.nix+2−2
@@ -42,8 +42,8 @@ stdenv.mkDerivation rec {
4242 "LIBDIR=$(out)/lib/bup"
4343 ];
4444
45− postInstall = optionalString (elem stdenv.system platforms.linux) ''
46− wrapProgram $out/bin/bup --prefix PYTHONPATH : \
45+ postInstall = ''wrapProgram $out/bin/bup --prefix PATH : ${git}/bin ''
46+ + optionalString (elem stdenv.system platforms.linux) '' --prefix PYTHONPATH : \
4747 ${stdenv.lib.concatStringsSep ":"
4848 (map (path: "$(toPythonPath ${path})") [ pyxattr pylibacl setuptools fuse ])}
4949 '';