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