1 { lib, stdenv, fetchurl, pkg-config, openssl ? null, gnutls ? null, gmp, libxml2, stoken, zlib, fetchgit, darwin } :
3 assert (openssl != null) == (gnutls == null);
6 url = "git://git.infradead.org/users/dwmw2/vpnc-scripts.git";
7 rev = "c0122e891f7e033f35f047dad963702199d5cb9e";
8 sha256 = "11b1ls012mb704jphqxjmqrfbbhkdjb64j2q4k8wb5jmja8jnd14";
11 in stdenv.mkDerivation rec {
12 pname = "openconnect";
17 "ftp://ftp.infradead.org/pub/openconnect/${pname}-${version}.tar.gz"
19 sha256 = "1cdsx4nsrwawbsisfkldfc9i4qn60g03vxb13nzppr2br9p4rrih";
22 outputs = [ "out" "dev" ];
25 "--with-vpnc-script=${vpnc}/vpnc-script"
27 "--without-openssl-version-check"
30 buildInputs = [ openssl gnutls gmp libxml2 stoken zlib ]
31 ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.PCSC;
32 nativeBuildInputs = [ pkg-config ];
35 description = "VPN Client for Cisco's AnyConnect SSL VPN";
36 homepage = "http://www.infradead.org/openconnect/";
37 license = licenses.lgpl21;
38 maintainers = with maintainers; [ pradeepchhetri tricktron ];
39 platforms = lib.platforms.linux ++ lib.platforms.darwin;