nixpkgs/pkgs/tools/backup/rdiff-backup/default.nix
Yury G. Kudryashov fbfab88e04 Nix-expr style review
Unneded args.something replaced with
args: with args;
line. After this line args is the only place where we can recieve variables from.

Also removed several
buildInputs = [];
lines.


svn path=/nixpkgs/branches/stdenv-updates/; revision=10429
2008-01-31 10:41:04 +00:00

25 lines
712 B
Nix

args: with args;
stdenv.mkDerivation {
name = "rdiff-backup-1.1.14";
src = fetchurl {
url = http://savannah.nongnu.org/download/rdiff-backup/rdiff-backup-1.1.14.tar.gz;
sha256 = "0sh2kz90z47yfa9786dyn3q9ba1xcmjvd65rykvm7mg5apnrg27h";
};
phases="installPhase";
installPhase="python setup.py install --prefix=\$out || fail
sed -i \$out/bin/rdiff-backup -e \\
\"/import sys/ asys.path += [ \\\"\$out/lib/python2.4/site-packages/\\\" ]\"
";
buildInputs = [python librsync gnused ];
meta = {
description = "backup system trying to combine best a mirror and an incremental backup system";
homepage = http://rdiff-backup.nongnu.org/;
license = "GPL-2";
};
}