parent
9c27834e32
commit
687834f44d
@ -0,0 +1,43 @@ |
||||
{ version |
||||
, src |
||||
}: |
||||
|
||||
{ lib |
||||
, stdenv |
||||
, pkg-config |
||||
, gnutls |
||||
, 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) ] |
||||
++ lib.optional stdenv.isDarwin PCSC; |
||||
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; |
||||
}; |
||||
} |
Loading…
Reference in new issue