summary refs log tree commit diff
path: root/pkgs/tools/networking/openvpn/default.nix
blob: bfcc1c16dab45f3a3658a07b6471dd8f2096773e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{stdenv, fetchurl, iproute, lzo, openssl, nettools}:

stdenv.mkDerivation rec {
  name = "openvpn-2.2.0";

  src = fetchurl {
    url = "http://swupdate.openvpn.net/community/releases/${name}.tar.gz";
    sha256 = "0rr59b3ybqr2j5jxl2fdzmm5qbh0hvwi03xfaha6s7k4l6mymsvi";
  };

  buildInputs = [ iproute lzo openssl ];

  configureFlags = ''
    --enable-password-save
    --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.";
      homepage="http://openvpn.net/";
      license = "GPLv2";
      maintainers = with stdenv.lib.maintainers; [viric];
      platforms = with stdenv.lib.platforms; linux;
  };
}