2023-02-02 18:25:31 +00:00
|
|
|
{ stdenv, lib, fetchurl
|
|
|
|
, cmake, qtwebsockets, qtwebengine, qtkeychain, wrapQtAppsHook, openconnect
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "globalprotect-openconnect";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.4.9";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/yuezk/GlobalProtect-openconnect/releases/download/v${version}/globalprotect-openconnect-${version}.tar.gz";
|
|
|
|
hash = "sha256-vhvVKESLbqHx3XumxbIWOXIreDkW3yONDMXMHxhjsvk=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [ cmake wrapQtAppsHook ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
buildInputs = [ openconnect qtwebsockets qtwebengine qtkeychain ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace GPService/gpservice.h \
|
|
|
|
--replace /usr/local/bin/openconnect ${openconnect}/bin/openconnect;
|
2022-06-16 17:23:12 +00:00
|
|
|
substituteInPlace GPService/CMakeLists.txt \
|
|
|
|
--replace /etc/gpservice $out/etc/gpservice;
|
2021-06-28 23:13:55 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GlobalProtect VPN client (GUI) for Linux based on OpenConnect that supports SAML auth mode";
|
|
|
|
homepage = "https://github.com/yuezk/GlobalProtect-openconnect";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = [ maintainers.jerith666 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|