pptp: Fix path to ip
routing.c has hardcoded /bin/ip. Use ${iproute2}/sbin/ip instead.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, perl, ppp }:
|
||||
{ stdenv, fetchurl, perl, ppp, iproute }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pptp-1.7.2";
|
||||
@@ -11,6 +11,7 @@ stdenv.mkDerivation rec {
|
||||
patchPhase =
|
||||
''
|
||||
sed -e 's/install -o root/install/' -i Makefile
|
||||
sed -e 's,/bin/ip,${iproute}/sbin/ip,' -i routing.c
|
||||
'';
|
||||
preConfigure =
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user