1{ stdenv, fetchurl, python, librsync, ncftp, gnupg, boto, makeWrapper
2, lockfile, setuptools }:
3
4let
5 version = "0.7.02";
6in
7stdenv.mkDerivation {
8 name = "duplicity-${version}";
9
10 src = fetchurl {
11 url = "http://code.launchpad.net/duplicity/0.7-series/${version}/+download/duplicity-${version}.tar.gz";
12 sha256 = "0fh3xl4xc7cpi7iam34qd0ndqp1641kfw2609yp40lr78fx65530";
13 };
14
15 installPhase = ''
16 python setup.py install --prefix=$out
17 wrapProgram $out/bin/duplicity \
18 --prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})" \
19 --prefix PATH : "${gnupg}/bin:${ncftp}/bin"
20 wrapProgram $out/bin/rdiffdir \
21 --prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${boto}):$(toPythonPath ${lockfile})" \
22 '';
23
24 buildInputs = [ python librsync makeWrapper setuptools ];
25
26 meta = {
27 description = "Encrypted bandwidth-efficient backup using the rsync algorithm";
28 homepage = "http://www.nongnu.org/duplicity";
29 license = stdenv.lib.licenses.gpl2Plus;
30 maintainers = with stdenv.lib.maintainers; [viric simons];
31 platforms = with stdenv.lib.platforms; linux;
32 };
33}