1
0
Fork 1
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:
Brian McKenna 2015-09-07 04:08:59 +10:00
parent 167383c7bf
commit 8b78f2ed11

View file

@ -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}";