mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
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.
This commit is contained in:
parent
63f9ef9f19
commit
8df0bb7aac
|
@ -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})"
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue