From 9011f117f2daea34760b669749d75a29ed0be88d Mon Sep 17 00:00:00 2001 From: Thomas Strobel Date: Wed, 5 Aug 2015 12:12:09 +0200 Subject: [PATCH] strongswan: fix resolvconf plugin --- pkgs/tools/networking/strongswan/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/strongswan/default.nix b/pkgs/tools/networking/strongswan/default.nix index 9f68e5856ba9..784ebb2bb7f7 100644 --- a/pkgs/tools/networking/strongswan/default.nix +++ b/pkgs/tools/networking/strongswan/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, gmp, pkgconfig, python, autoreconfHook -, curl, trousers, sqlite, iptables, libxml2 +, curl, trousers, sqlite, iptables, libxml2, openresolv , enableTNC ? false }: stdenv.mkDerivation rec { @@ -22,6 +22,10 @@ stdenv.mkDerivation rec { ./updown-path.patch ]; + postPatch = '' + substituteInPlace src/libcharon/plugins/resolve/resolve_handler.c --replace "/sbin/resolvconf" "${openresolv}/sbin/resolvconf" + ''; + configureFlags = [ "--enable-swanctl" "--enable-cmd" "--enable-farp" "--enable-dhcp"