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