2013-08-21 19:42:09 +01:00
|
|
|
{ stdenv, fetchurl, python, librsync, ncftp, gnupg, boto, makeWrapper }:
|
2010-02-10 16:51:01 +00:00
|
|
|
|
2010-02-04 13:42:41 +00:00
|
|
|
stdenv.mkDerivation {
|
2013-08-21 18:53:06 +01:00
|
|
|
name = "duplicity-0.6.21";
|
2010-02-04 13:42:41 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-08-21 18:53:06 +01:00
|
|
|
url = "http://code.launchpad.net/duplicity/0.6-series/0.6.21/+download/duplicity-0.6.21.tar.gz";
|
|
|
|
sha256 = "01ppxzghnig7al9cwi8ap95y0d3j5n0vf3ag06iw3ysiq6k8lqm3";
|
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 \
|
2010-02-10 18:10:22 +00:00
|
|
|
--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${boto})" \
|
2013-08-21 19:42:09 +01:00
|
|
|
--prefix PATH : "${gnupg}/bin:${ncftp}/bin"
|
2010-06-05 16:06:12 +01:00
|
|
|
wrapProgram $out/bin/rdiffdir \
|
|
|
|
--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${boto})" \
|
2010-02-04 13:42:41 +00:00
|
|
|
'';
|
|
|
|
|
2010-02-10 16:51:01 +00:00
|
|
|
buildInputs = [ python librsync makeWrapper ];
|
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";
|
2010-02-04 13:42:41 +00:00
|
|
|
license = "GPLv2+";
|
2012-02-06 19:45:18 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric simons];
|
2010-02-04 13:42:41 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|