From 8df0bb7aac42c78dbd8e2fd9bd600cbd714f3f1c Mon Sep 17 00:00:00 2001 From: Russell O'Connor Date: Fri, 9 Sep 2016 12:10:19 -0400 Subject: [PATCH] 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. --- pkgs/tools/backup/duplicity/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/backup/duplicity/default.nix b/pkgs/tools/backup/duplicity/default.nix index 85b4a1e1a8f1..25bcc6e27ad0 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})" '';