bd01fad0ed
In line with the Nixpkgs manual. A mechanical change, done with this command: find pkgs -name "*.nix" | \ while read f; do \ sed -e 's/description\s*=\s*"\([a-z]\)/description = "\u\1/' -i "$f"; \ done I manually skipped some: * Descriptions starting with an abbreviation, a user name or package name * Frequently generated expressions (haskell-packages.nix)
31 lines
992 B
Nix
31 lines
992 B
Nix
{stdenv, fetchurl, python, librsync, gnused }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "rdiff-backup-1.3.3";
|
|
|
|
src = fetchurl {
|
|
url = mirror://savannah/rdiff-backup/rdiff-backup-1.3.3.tar.gz;
|
|
sha256 = "01hcwf5rgqi303fa4kdjkbpa7n8mvvh7h9gpgh2b23nz73k0q0zf";
|
|
};
|
|
|
|
patches = [ ./fix-librsync-rs_default_strong_len.patch ];
|
|
|
|
installPhase = ''
|
|
python ./setup.py install --prefix=$out
|
|
sed -i $out/bin/rdiff-backup -e \
|
|
"/import sys/ asys.path += [ \"$out/lib/python2.7/site-packages/\" ]"
|
|
sed -i $out/bin/rdiff-backup-statistics -e \
|
|
"/import .*sys/ asys.path += [ \"$out/lib/python2.7/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 = stdenv.lib.licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.all;
|
|
maintainers = with stdenv.lib.maintainers; [ the-kenny ];
|
|
};
|
|
}
|