mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
iodine: fix ifconfig path patch
Looks like something changed but now we can pass a #define directive via the CFLAGS instead. Still need to patch the route path, though.
This commit is contained in:
parent
167383c7bf
commit
8b78f2ed11
|
@ -10,7 +10,9 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ zlib ];
|
||||
|
||||
patchPhase = ''sed -i "s,/sbin/ifconfig,${nettools}/bin/ifconfig,; s,/sbin/route,${nettools}/bin/route," src/tun.c'';
|
||||
patchPhase = ''sed -i "s,/sbin/route,${nettools}/bin/route," src/tun.c'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-DIFCONFIGPATH=\"${nettools}/bin/\"";
|
||||
|
||||
installFlags = "prefix=\${out}";
|
||||
|
||||
|
|
Loading…
Reference in a new issue