3
0
Fork 0
forked from mirrors/nixpkgs

rdiff-backup: use python2 and buildPythonApplication

This commit is contained in:
Frederik Rietdijk 2016-11-09 15:59:47 +01:00
parent d8b0096704
commit f3c8692232

View file

@ -1,6 +1,6 @@
{stdenv, fetchurl, python, librsync, gnused }:
{stdenv, fetchurl, python2Packages, librsync, gnused }:
stdenv.mkDerivation {
python2Packages.buildPythonApplication {
name = "rdiff-backup-1.3.3";
src = fetchurl {
@ -10,15 +10,9 @@ stdenv.mkDerivation {
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 = [ librsync gnused ];
buildInputs = [ python librsync gnused ];
doCheck = false;
meta = {
description = "Backup system trying to combine best a mirror and an incremental backup system";