rdiff-backup: use python2 and buildPythonApplication
This commit is contained in:
parent
d8b0096704
commit
f3c8692232
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user