1 { stdenv, lib, fetchurl
2 , cmake, qtwebsockets, qtwebengine, qtkeychain, wrapQtAppsHook, openconnect
5 stdenv.mkDerivation rec {
6 pname = "globalprotect-openconnect";
10 url = "https://github.com/yuezk/GlobalProtect-openconnect/releases/download/v${version}/globalprotect-openconnect-${version}.tar.gz";
11 hash = "sha256-vhvVKESLbqHx3XumxbIWOXIreDkW3yONDMXMHxhjsvk=";
14 nativeBuildInputs = [ cmake wrapQtAppsHook ];
16 buildInputs = [ openconnect qtwebsockets qtwebengine qtkeychain ];
19 substituteInPlace GPService/gpservice.h \
20 --replace /usr/local/bin/openconnect ${openconnect}/bin/openconnect;
21 substituteInPlace GPService/CMakeLists.txt \
22 --replace /etc/gpservice $out/etc/gpservice;
26 description = "GlobalProtect VPN client (GUI) for Linux based on OpenConnect that supports SAML auth mode";
27 homepage = "https://github.com/yuezk/GlobalProtect-openconnect";
28 license = licenses.gpl3Only;
29 maintainers = [ maintainers.jerith666 ];
30 platforms = platforms.linux;