2021-06-28 23:13:55 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub
|
2021-12-06 16:07:01 +00:00
|
|
|
, cmake, qtwebsockets, qtwebengine, wrapQtAppsHook, openconnect
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "globalprotect-openconnect";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "1.4.1";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yuezk";
|
|
|
|
repo = "GlobalProtect-openconnect";
|
|
|
|
fetchSubmodules = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
rev = "v${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-J4f+DJuKQUGK49muAtPU1aL/KI9mofIjyCcIztNVyr4=";
|
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
|
|
|
|
|
|
|
buildInputs = [ openconnect qtwebsockets qtwebengine ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace GPService/gpservice.h \
|
|
|
|
--replace /usr/local/bin/openconnect ${openconnect}/bin/openconnect;
|
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|