nixpkgs/pkgs/tools/networking/openvpn/default.nix
Peter Simons 8b3dd70553 openvpn: use iproute2 instead of net-tools
for setting up tunnel/routes.
I had some issues with ipv6, iproute2 fixed those.

Both are equally well supported by upstream.

svn path=/nixpkgs/trunk/; revision=31660
2012-01-18 20:38:27 +00:00

27 lines
731 B
Nix

{stdenv, fetchurl, iproute, lzo, openssl}:
stdenv.mkDerivation rec {
name = "openvpn-2.2.2";
src = fetchurl {
url = "http://swupdate.openvpn.net/community/releases/${name}.tar.gz";
sha256 = "005cpvdvh8pvsn3bc96lrznlkcccbz5jqa62hipb58rf1qk8pjjl";
};
buildInputs = [ iproute lzo openssl ];
configureFlags = ''
--enable-password-save
--enable-iproute2
--with-iproute-path=${iproute}/sbin/ip
'';
meta = {
description="OpenVPN is a robust and highly flexible tunneling application compatible with many OSes.";
homepage="http://openvpn.net/";
license = "GPLv2";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}