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