about summary refs log tree commit diff
path: root/pkgs/tools/backup/bup
diff options
context:
space:
mode:
authorFlorent Becker <Florent.Becker@ens-lyon.org>2016-05-25 10:53:35 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2016-05-28 02:08:41 +0200
commitd7749f27f3df976be82eef36f2dbc4b13de5ad9d (patch)
tree2bcff68ceda2027bfdea2e1d2c3835ebc26ca7a6 /pkgs/tools/backup/bup
parent89aab4f3516e9cb1f07bc4d065eb0f5cc1e00b83 (diff)
downloadnixlib-d7749f27f3df976be82eef36f2dbc4b13de5ad9d.tar
nixlib-d7749f27f3df976be82eef36f2dbc4b13de5ad9d.tar.gz
nixlib-d7749f27f3df976be82eef36f2dbc4b13de5ad9d.tar.bz2
nixlib-d7749f27f3df976be82eef36f2dbc4b13de5ad9d.tar.lz
nixlib-d7749f27f3df976be82eef36f2dbc4b13de5ad9d.tar.xz
nixlib-d7749f27f3df976be82eef36f2dbc4b13de5ad9d.tar.zst
nixlib-d7749f27f3df976be82eef36f2dbc4b13de5ad9d.zip
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
Diffstat (limited to 'pkgs/tools/backup/bup')
-rw-r--r--pkgs/tools/backup/bup/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/backup/bup/default.nix b/pkgs/tools/backup/bup/default.nix
index b4efe9fb441f..af5116eaa724 100644
--- a/pkgs/tools/backup/bup/default.nix
+++ b/pkgs/tools/backup/bup/default.nix
@@ -42,8 +42,8 @@ stdenv.mkDerivation rec {
     "LIBDIR=$(out)/lib/bup"
   ];
 
-  postInstall = optionalString (elem stdenv.system platforms.linux) ''
-    wrapProgram $out/bin/bup --prefix PYTHONPATH : \
+  postInstall = ''wrapProgram $out/bin/bup --prefix PATH : ${git}/bin ''
+   + optionalString (elem stdenv.system platforms.linux) '' --prefix PYTHONPATH : \
       ${stdenv.lib.concatStringsSep ":"
           (map (path: "$(toPythonPath ${path})") [ pyxattr pylibacl setuptools fuse ])}
   '';