2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, vpnc, openssl ? null, gnutls ? null, gmp, libxml2, stoken, zlib, autoreconfHook } :
|
2018-11-17 16:26:43 +00:00
|
|
|
|
|
|
|
assert (openssl != null) == (gnutls == null);
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2018-11-17 19:48:34 +00:00
|
|
|
version = "unstable-2018-10-08";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "openconnect_pa";
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2018-11-17 20:01:18 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2018-11-17 16:26:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dlenski";
|
|
|
|
repo = "openconnect";
|
|
|
|
rev = "e5fe063a087385c5b157ad7a9a3fa874181f6e3b";
|
2021-01-19 21:20:11 +00:00
|
|
|
sha256 = "0ywacqs3nncr2gpjjcz2yc9c6v4ifjssh0vb07h0qff06whqhdax";
|
2018-11-17 16:26:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
2021-01-17 03:51:22 +00:00
|
|
|
export PKG_CONFIG=${pkg-config}/bin/${pkg-config.targetPrefix}pkg-config
|
2018-11-17 16:26:43 +00:00
|
|
|
export LIBXML2_CFLAGS="-I ${libxml2.dev}/include/libxml2"
|
|
|
|
export LIBXML2_LIBS="-L${libxml2.out}/lib -lxml2"
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-vpnc-script=${vpnc}/etc/vpnc/vpnc-script"
|
|
|
|
"--disable-nls"
|
|
|
|
"--without-openssl-version-check"
|
|
|
|
];
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
2018-11-17 16:26:43 +00:00
|
|
|
propagatedBuildInputs = [ vpnc openssl gnutls gmp libxml2 stoken zlib ];
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-17 16:26:43 +00:00
|
|
|
description = "OpenConnect client extended to support Palo Alto Networks' GlobalProtect VPN";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/dlenski/openconnect/";
|
2018-11-17 19:29:09 +00:00
|
|
|
license = licenses.lgpl21;
|
2018-11-17 19:45:35 +00:00
|
|
|
maintainers = with maintainers; [ chessai ];
|
|
|
|
platforms = platforms.linux;
|
2018-11-17 16:26:43 +00:00
|
|
|
};
|
|
|
|
}
|