3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/openconnect/default.nix

35 lines
978 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, vpnc, openssl ? null, gnutls ? null, gmp, libxml2, stoken, zlib } :
2017-09-25 14:40:41 +01:00
assert (openssl != null) == (gnutls == null);
2013-05-31 19:19:56 +01:00
stdenv.mkDerivation rec {
2019-01-16 14:58:56 +00:00
pname = "openconnect";
version = "8.02";
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-01-16 14:58:56 +00:00
sha256 = "04p0vzc1791h68hd9803wsyb64zrwm8qpdqx0szhj9pig71g5a0w";
2013-05-31 19:19:56 +01:00
};
2017-09-25 14:40:41 +01:00
outputs = [ "out" "dev" ];
2013-05-31 19:19:56 +01:00
configureFlags = [
"--with-vpnc-script=${vpnc}/etc/vpnc/vpnc-script"
"--disable-nls"
"--without-openssl-version-check"
2013-05-31 19:19:56 +01:00
];
nativeBuildInputs = [ pkgconfig ];
propagatedBuildInputs = [ vpnc openssl gnutls gmp libxml2 stoken zlib ];
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 ];
platforms = stdenv.lib.platforms.linux;
};
2013-05-31 19:19:56 +01:00
}