2011-09-05 12:32:55 +04:00
|
|
|
{stdenv, fetchurl, python, librsync, gnused }:
|
|
|
|
|
2008-01-30 20:20:48 +03:00
|
|
|
stdenv.mkDerivation {
|
2013-12-09 04:34:00 +04:00
|
|
|
name = "rdiff-backup-1.3.3";
|
2007-09-09 00:45:23 +04:00
|
|
|
|
2008-01-30 20:20:48 +03:00
|
|
|
src = fetchurl {
|
2013-12-09 04:34:00 +04:00
|
|
|
url = mirror://savannah/rdiff-backup/rdiff-backup-1.3.3.tar.gz;
|
|
|
|
sha256 = "01hcwf5rgqi303fa4kdjkbpa7n8mvvh7h9gpgh2b23nz73k0q0zf";
|
2007-09-09 00:45:23 +04:00
|
|
|
};
|
|
|
|
|
2011-09-05 12:32:55 +04:00
|
|
|
phases = "unpackPhase installPhase";
|
2008-04-23 11:34:20 +04:00
|
|
|
installPhase = ''
|
2011-09-05 12:32:55 +04:00
|
|
|
python ./setup.py install --prefix=$out
|
2008-04-23 11:34:20 +04:00
|
|
|
sed -i $out/bin/rdiff-backup -e \
|
2012-07-21 21:56:44 +04:00
|
|
|
"/import sys/ asys.path += [ \"$out/lib/python2.7/site-packages/\" ]"
|
2008-04-23 11:34:20 +04:00
|
|
|
'';
|
2007-09-09 00:45:23 +04:00
|
|
|
|
2013-12-09 04:34:00 +04:00
|
|
|
buildInputs = [ python librsync gnused ];
|
2007-09-09 00:45:23 +04:00
|
|
|
|
|
|
|
meta = {
|
2008-04-23 11:34:20 +04:00
|
|
|
description = "backup system trying to combine best a mirror and an incremental backup system";
|
|
|
|
homepage = http://rdiff-backup.nongnu.org/;
|
2014-06-19 08:19:00 +04:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2013-12-09 04:34:00 +04:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
|
2008-04-23 11:34:20 +04:00
|
|
|
};
|
2007-09-09 00:45:23 +04:00
|
|
|
}
|