From 48216ba01a56d69682ddb4bb07c256efb4d91a04 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Tue, 28 Apr 2009 15:37:52 +0000 Subject: [PATCH] fix openvpn making it find ifonfig svn path=/nixpkgs/trunk/; revision=15380 --- pkgs/tools/networking/openvpn/default.nix | 8 +++++++- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/openvpn/default.nix b/pkgs/tools/networking/openvpn/default.nix index 7da8efcb6224..3d89ef6a44b5 100644 --- a/pkgs/tools/networking/openvpn/default.nix +++ b/pkgs/tools/networking/openvpn/default.nix @@ -7,7 +7,13 @@ stdenv.mkDerivation { sha256 = "198k5lbw0bnx67hgflzlzncmdnww0wa7fll0kkirmckav93y7kv6"; }; - buildInputs = [ iproute lzo openssl]; + buildInputs = [ iproute lzo openssl ]; + + configureFlags = '' + --with-ifconfig-path=${nettools}/sbin/ifconfig + --with-iproute-path=${iproute}/sbin/ip + --with-route-path=${nettools}/sbin/route + ''; meta = { description="OpenVPN is a robust and highly flexible tunneling application compatible with many OSes."; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b0afd0e04e57..9828e6fecc13 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1047,7 +1047,7 @@ let }; openvpn = import ../tools/networking/openvpn { - inherit fetchurl stdenv iproute lzo openssl; + inherit fetchurl stdenv iproute lzo openssl nettools; }; p7zip = import ../tools/archivers/p7zip {