2017-02-28 16:47:21 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, vpnc, openssl ? null, gnutls ? null, gmp, libxml2, stoken, zlib } :
|
2015-06-11 17:52:00 +00:00
|
|
|
|
2017-09-25 13:40:41 +00:00
|
|
|
assert (openssl != null) == (gnutls == null);
|
2013-05-31 18:19:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-01-16 14:58:56 +00:00
|
|
|
pname = "openconnect";
|
2019-09-17 17:06:53 +00:00
|
|
|
version = "8.05";
|
2013-05-31 18:19:56 +00: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 18:19:56 +00:00
|
|
|
];
|
2019-09-17 17:06:53 +00:00
|
|
|
sha256 = "14i9q727c2zc9xhzp1a9hz3gzb5lwgsslbhircm84dnbs192jp1k";
|
2013-05-31 18:19:56 +00:00
|
|
|
};
|
|
|
|
|
2017-09-25 13:40:41 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2013-05-31 18:19:56 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-vpnc-script=${vpnc}/etc/vpnc/vpnc-script"
|
|
|
|
"--disable-nls"
|
2013-06-08 10:26:23 +00:00
|
|
|
"--without-openssl-version-check"
|
2013-05-31 18:19:56 +00:00
|
|
|
];
|
|
|
|
|
2017-09-05 21:25:26 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2017-02-28 16:47:21 +00:00
|
|
|
propagatedBuildInputs = [ vpnc openssl gnutls gmp libxml2 stoken zlib ];
|
2016-08-02 16:06:29 +00:00
|
|
|
|
|
|
|
meta = {
|
2017-01-28 21:05:37 +00:00
|
|
|
description = "VPN Client for Cisco's AnyConnect SSL VPN";
|
|
|
|
homepage = http://www.infradead.org/openconnect/;
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ pradeepchhetri ];
|
2016-08-02 16:06:29 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2013-05-31 18:19:56 +00:00
|
|
|
}
|