2016-08-14 12:06:42 +01:00
|
|
|
{ stdenv, fetchurl, pythonPackages, librsync, ncftp, gnupg, makeWrapper
|
2015-10-10 20:19:30 +01:00
|
|
|
}:
|
2010-02-10 16:51:01 +00:00
|
|
|
|
2014-01-13 15:48:04 +00:00
|
|
|
let
|
2016-05-28 19:54:47 +01:00
|
|
|
version = "0.7.07.1";
|
2016-08-14 12:06:42 +01:00
|
|
|
inherit (pythonPackages) boto ecdsa lockfile paramiko pycrypto python setuptools;
|
|
|
|
in stdenv.mkDerivation {
|
2014-01-13 15:48:04 +00:00
|
|
|
name = "duplicity-${version}";
|
2010-02-04 13:42:41 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-03-30 03:45:12 +01:00
|
|
|
url = "http://code.launchpad.net/duplicity/0.7-series/${version}/+download/duplicity-${version}.tar.gz";
|
2016-05-28 19:54:47 +01:00
|
|
|
sha256 = "594c6d0e723e56f8a7114d57811c613622d535cafdef4a3643a4d4c89c1904f8";
|
2010-02-04 13:42:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
python setup.py install --prefix=$out
|
2010-02-10 16:51:01 +00:00
|
|
|
wrapProgram $out/bin/duplicity \
|
2015-10-10 20:19:30 +01:00
|
|
|
--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${pycrypto}):$(toPythonPath ${ecdsa}):$(toPythonPath ${paramiko}):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})" \
|
2016-08-22 23:06:51 +01:00
|
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ gnupg ncftp ]}"
|
2010-06-05 16:06:12 +01:00
|
|
|
wrapProgram $out/bin/rdiffdir \
|
2015-10-10 20:19:30 +01:00
|
|
|
--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${pycrypto}):$(toPythonPath ${ecdsa}):$(toPythonPath ${paramiko}):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})"
|
2010-02-04 13:42:41 +00:00
|
|
|
'';
|
|
|
|
|
2014-09-01 10:34:19 +01:00
|
|
|
buildInputs = [ python librsync makeWrapper setuptools ];
|
2010-02-04 13:42:41 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Encrypted bandwidth-efficient backup using the rsync algorithm";
|
2012-02-06 19:45:18 +00:00
|
|
|
homepage = "http://www.nongnu.org/duplicity";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-05-16 21:30:20 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric peti];
|
2010-02-04 13:42:41 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|