2010-02-10 19:10:22 +01:00
|
|
|
{ stdenv, fetchurl, python, librsync, gnupg, boto, makeWrapper }:
|
2010-02-10 17:51:01 +01:00
|
|
|
|
2010-02-04 14:42:41 +01:00
|
|
|
stdenv.mkDerivation {
|
2010-05-27 21:33:42 +02:00
|
|
|
name = "duplicity-0.6.08b";
|
2010-02-04 14:42:41 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-05-27 21:33:42 +02:00
|
|
|
url = http://code.launchpad.net/duplicity/0.6-series/0.6.08b/+download/duplicity-0.6.08b.tar.gz;
|
|
|
|
sha256 = "03bahzdq2dqngiqadfy1jwzn8an1fm46nl9frd0v6a4c52mr1g8i";
|
2010-02-04 14:42:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
python setup.py install --prefix=$out
|
2010-02-10 17:51:01 +01:00
|
|
|
wrapProgram $out/bin/duplicity \
|
2010-02-10 19:10:22 +01:00
|
|
|
--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${boto})" \
|
2010-02-10 17:51:01 +01:00
|
|
|
--prefix PATH : "${gnupg}/bin"
|
2010-06-05 17:06:12 +02:00
|
|
|
wrapProgram $out/bin/rdiffdir \
|
|
|
|
--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${boto})" \
|
2010-02-04 14:42:41 +01:00
|
|
|
'';
|
|
|
|
|
2010-02-10 17:51:01 +01:00
|
|
|
buildInputs = [ python librsync makeWrapper ];
|
2010-02-04 14:42:41 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Encrypted bandwidth-efficient backup using the rsync algorithm";
|
|
|
|
homepage = http://www.nongnu.org/duplicity;
|
|
|
|
license = "GPLv2+";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|