2022-03-26 14:00:36 +00:00
|
|
|
{ version
|
|
|
|
, src
|
|
|
|
}:
|
|
|
|
|
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, pkg-config
|
|
|
|
, gnutls
|
2022-04-22 06:54:53 +01:00
|
|
|
, p11-kit
|
2022-03-26 14:00:36 +00:00
|
|
|
, openssl
|
|
|
|
, useOpenSSL ? false
|
|
|
|
, gmp
|
|
|
|
, libxml2
|
|
|
|
, stoken
|
|
|
|
, zlib
|
|
|
|
, vpnc-scripts
|
|
|
|
, PCSC
|
|
|
|
, autoreconfHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openconnect";
|
|
|
|
inherit version src;
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-vpnc-script=${vpnc-scripts}/bin/vpnc-script"
|
|
|
|
"--disable-nls"
|
|
|
|
"--without-openssl-version-check"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ gmp libxml2 stoken zlib (if useOpenSSL then openssl else gnutls) ]
|
2022-04-22 06:54:53 +01:00
|
|
|
++ lib.optional stdenv.isDarwin PCSC
|
|
|
|
++ lib.optional stdenv.isLinux p11-kit;
|
2022-03-26 14:00:36 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "VPN Client for Cisco's AnyConnect SSL VPN";
|
|
|
|
homepage = "https://www.infradead.org/openconnect/";
|
|
|
|
license = licenses.lgpl21Only;
|
|
|
|
maintainers = with maintainers; [ pradeepchhetri tricktron alyaeanyx ];
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|