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