nixpkgs/pkgs/tools/backup/duplicity/default.nix

34 lines
1.1 KiB
Nix
Raw Normal View History

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