2014-03-08 13:28:50 +01:00
|
|
|
{ stdenv, fetchurl, python, librsync, ncftp, gnupg, boto, makeWrapper, lockfile }:
|
2010-02-10 17:51:01 +01:00
|
|
|
|
2014-01-13 16:48:04 +01:00
|
|
|
let
|
2014-02-24 21:17:09 +01:00
|
|
|
version = "0.6.23";
|
2014-01-13 16:48:04 +01:00
|
|
|
in
|
2010-02-04 14:42:41 +01:00
|
|
|
stdenv.mkDerivation {
|
2014-01-13 16:48:04 +01:00
|
|
|
name = "duplicity-${version}";
|
2010-02-04 14:42:41 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-01-13 16:48:04 +01:00
|
|
|
url = "http://code.launchpad.net/duplicity/0.6-series/${version}/+download/duplicity-${version}.tar.gz";
|
2014-02-24 21:17:09 +01:00
|
|
|
sha256 = "0q0ckkmyq9z7xfbb1jajflmbzjwxpcjkkiab43rxrplm0ghz25vs";
|
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 \
|
2014-03-08 13:28:50 +01:00
|
|
|
--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})" \
|
2013-08-21 20:42:09 +02:00
|
|
|
--prefix PATH : "${gnupg}/bin:${ncftp}/bin"
|
2010-06-05 17:06:12 +02:00
|
|
|
wrapProgram $out/bin/rdiffdir \
|
2014-03-08 13:28:50 +01:00
|
|
|
--prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})" \
|
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";
|
2012-02-06 20:45:18 +01:00
|
|
|
homepage = "http://www.nongnu.org/duplicity";
|
2010-02-04 14:42:41 +01:00
|
|
|
license = "GPLv2+";
|
2012-02-06 20:45:18 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric simons];
|
2010-02-04 14:42:41 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|