summary refs log tree commit diff
path: root/pkgs/tools/backup/duplicity
diff options
context:
space:
mode:
authorRussell O'Connor <roconnor@theorem.ca>2016-09-09 12:10:19 -0400
committerBjørn Forsman <bjorn.forsman@gmail.com>2016-09-09 18:37:25 +0200
commit8df0bb7aac42c78dbd8e2fd9bd600cbd714f3f1c (patch)
treeeceba1696fe7be00c2d7b1409a88fbfb1b7aef70 /pkgs/tools/backup/duplicity
parent63f9ef9f1951dc45e4aac900d9ad592be3a014eb (diff)
downloadnixpkgs-8df0bb7aac42c78dbd8e2fd9bd600cbd714f3f1c.tar
nixpkgs-8df0bb7aac42c78dbd8e2fd9bd600cbd714f3f1c.tar.gz
nixpkgs-8df0bb7aac42c78dbd8e2fd9bd600cbd714f3f1c.tar.bz2
nixpkgs-8df0bb7aac42c78dbd8e2fd9bd600cbd714f3f1c.tar.lz
nixpkgs-8df0bb7aac42c78dbd8e2fd9bd600cbd714f3f1c.tar.xz
nixpkgs-8df0bb7aac42c78dbd8e2fd9bd600cbd714f3f1c.tar.zst
nixpkgs-8df0bb7aac42c78dbd8e2fd9bd600cbd714f3f1c.zip
duplicity: add dependency on rsync
When using the rsync:// protocol, duplicity expects to find the rsync binary in the path.
Without rsync in the path, duplicity fails with the following error

    Attempt 1 failed. AttributeError: 'NoneType' object has no attribute 'rfind'

Adding rsync to the path enables the rsync:// protocol to work correctly.
Diffstat (limited to 'pkgs/tools/backup/duplicity')
-rw-r--r--pkgs/tools/backup/duplicity/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/backup/duplicity/default.nix b/pkgs/tools/backup/duplicity/default.nix
index 85b4a1e1a8f..25bcc6e27ad 100644
--- a/pkgs/tools/backup/duplicity/default.nix
+++ b/pkgs/tools/backup/duplicity/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, pythonPackages, librsync, ncftp, gnupg, makeWrapper
+{ stdenv, fetchurl, pythonPackages, librsync, ncftp, gnupg, rsync, makeWrapper
 }:
 
 let
@@ -16,7 +16,7 @@ in stdenv.mkDerivation {
     python setup.py install --prefix=$out
     wrapProgram $out/bin/duplicity \
       --prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${pycrypto}):$(toPythonPath ${ecdsa}):$(toPythonPath ${paramiko}):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})" \
-      --prefix PATH : "${stdenv.lib.makeBinPath [ gnupg ncftp ]}"
+      --prefix PATH : "${stdenv.lib.makeBinPath [ gnupg ncftp rsync ]}"
     wrapProgram $out/bin/rdiffdir \
       --prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${pycrypto}):$(toPythonPath ${ecdsa}):$(toPythonPath ${paramiko}):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})"
   '';