2018-11-17 17:26:43 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, vpnc, openssl ? null, gnutls ? null, gmp, libxml2, stoken, zlib, autoreconfHook } :
|
|
|
|
|
|
|
|
assert (openssl != null) == (gnutls == null);
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2018-11-17 20:48:34 +01:00
|
|
|
version = "unstable-2018-10-08";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "openconnect_pa";
|
2018-11-17 21:08:41 +01:00
|
|
|
|
2018-11-17 21:01:18 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2018-11-17 17:26:43 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dlenski";
|
|
|
|
repo = "openconnect";
|
|
|
|
rev = "e5fe063a087385c5b157ad7a9a3fa874181f6e3b";
|
|
|
|
sha256 = "0ywacqs3nncr2gpjjcz2yc9c6v4ifjssh0vb07h0qff06whqhdax";
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
2020-04-28 05:56:25 +02:00
|
|
|
export PKG_CONFIG=${pkgconfig}/bin/${pkgconfig.targetPrefix}pkg-config
|
2018-11-17 17:26:43 +01: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"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
|
|
|
propagatedBuildInputs = [ vpnc openssl gnutls gmp libxml2 stoken zlib ];
|
|
|
|
|
2018-11-17 20:29:09 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-11-17 17:26:43 +01:00
|
|
|
description = "OpenConnect client extended to support Palo Alto Networks' GlobalProtect VPN";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/dlenski/openconnect/";
|
2018-11-17 20:29:09 +01:00
|
|
|
license = licenses.lgpl21;
|
2018-11-17 20:45:35 +01:00
|
|
|
maintainers = with maintainers; [ chessai ];
|
|
|
|
platforms = platforms.linux;
|
2018-11-17 17:26:43 +01:00
|
|
|
};
|
|
|
|
}
|