2011-09-05 10:32:55 +02:00
|
|
|
{stdenv, fetchurl, python, librsync, gnused }:
|
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
stdenv.mkDerivation {
|
2012-07-21 19:56:44 +02:00
|
|
|
name = "rdiff-backup-1.2.8";
|
2007-09-08 22:45:23 +02:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2012-07-21 19:56:44 +02:00
|
|
|
url = http://savannah.nongnu.org/download/rdiff-backup/rdiff-backup-1.2.8.tar.gz;
|
|
|
|
sha256 = "1nwmmh816f96h0ff1jxk95ad38ilbhbdl5dgibx1d4cl81dsi48d";
|
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/\" ]"
|
2008-04-23 09:34:20 +02:00
|
|
|
'';
|
2007-09-08 22:45:23 +02:00
|
|
|
|
2008-01-30 18:20:48 +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/;
|
|
|
|
license = "GPL-2";
|
|
|
|
};
|
2007-09-08 22:45:23 +02:00
|
|
|
}
|