nixpkgs/pkgs/tools/networking/openconnect_pa/default.nix

41 lines
1.3 KiB
Nix
Raw Normal View History

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