2019-10-18 09:16:31 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, openssl ? null, gnutls ? null, gmp, libxml2, stoken, zlib, fetchgit, darwin } :
|
2015-06-11 18:52:00 +01:00
|
|
|
|
2017-09-25 14:40:41 +01:00
|
|
|
assert (openssl != null) == (gnutls == null);
|
2013-05-31 19:19:56 +01:00
|
|
|
|
2019-10-18 09:16:31 +01:00
|
|
|
let vpnc = fetchgit {
|
|
|
|
url = "git://git.infradead.org/users/dwmw2/vpnc-scripts.git";
|
|
|
|
rev = "c84fb8e5a523a647a01a1229a9104db934e19f00";
|
|
|
|
sha256 = "01xdclx0y3x66mpbdr77n4ilapwzjz475h32q88ml9gnq6phjxrs";
|
|
|
|
};
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-01-16 14:58:56 +00:00
|
|
|
pname = "openconnect";
|
2019-09-17 18:06:53 +01:00
|
|
|
version = "8.05";
|
2013-05-31 19:19:56 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
urls = [
|
2019-01-16 14:58:56 +00:00
|
|
|
"ftp://ftp.infradead.org/pub/openconnect/${pname}-${version}.tar.gz"
|
2013-05-31 19:19:56 +01:00
|
|
|
];
|
2019-09-17 18:06:53 +01:00
|
|
|
sha256 = "14i9q727c2zc9xhzp1a9hz3gzb5lwgsslbhircm84dnbs192jp1k";
|
2013-05-31 19:19:56 +01:00
|
|
|
};
|
|
|
|
|
2017-09-25 14:40:41 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
2019-10-18 09:16:31 +01:00
|
|
|
|
2013-05-31 19:19:56 +01:00
|
|
|
configureFlags = [
|
2019-10-18 09:16:31 +01:00
|
|
|
"--with-vpnc-script=${vpnc}/vpnc-script"
|
2013-05-31 19:19:56 +01:00
|
|
|
"--disable-nls"
|
2013-06-08 11:26:23 +01:00
|
|
|
"--without-openssl-version-check"
|
2013-05-31 19:19:56 +01:00
|
|
|
];
|
|
|
|
|
2019-10-18 09:16:31 +01:00
|
|
|
buildInputs = [ openssl gnutls gmp libxml2 stoken zlib ]
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.PCSC;
|
2017-09-05 22:25:26 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-08-02 17:06:29 +01:00
|
|
|
|
2019-10-18 09:16:31 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-01-28 21:05:37 +00:00
|
|
|
description = "VPN Client for Cisco's AnyConnect SSL VPN";
|
|
|
|
homepage = http://www.infradead.org/openconnect/;
|
2019-10-18 09:16:31 +01:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ pradeepchhetri tricktron ];
|
|
|
|
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
|
2016-08-02 17:06:29 +01:00
|
|
|
};
|
2013-05-31 19:19:56 +01:00
|
|
|
}
|