From 8b78f2ed11c2686d3707a3b619f1b220b8700333 Mon Sep 17 00:00:00 2001 From: Brian McKenna Date: Mon, 7 Sep 2015 04:08:59 +1000 Subject: [PATCH] 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. --- pkgs/tools/networking/iodine/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/iodine/default.nix b/pkgs/tools/networking/iodine/default.nix index 098d6ef962fe..69f27ff37c23 100644 --- a/pkgs/tools/networking/iodine/default.nix +++ b/pkgs/tools/networking/iodine/default.nix @@ -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}";