2020-12-02 15:45:03 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub
|
2021-12-03 04:03:55 +00:00
|
|
|
, cmake, qtwebsockets, qtwebengine, wrapQtAppsHook, openconnect
|
2020-12-02 15:45:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "globalprotect-openconnect";
|
2022-04-13 00:49:20 +01:00
|
|
|
version = "1.4.1";
|
2020-12-02 15:45:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yuezk";
|
|
|
|
repo = "GlobalProtect-openconnect";
|
|
|
|
fetchSubmodules = true;
|
2021-12-03 04:03:55 +00:00
|
|
|
rev = "v${version}";
|
2022-04-13 00:49:20 +01:00
|
|
|
sha256 = "sha256-J4f+DJuKQUGK49muAtPU1aL/KI9mofIjyCcIztNVyr4=";
|
2020-12-02 15:45:03 +00:00
|
|
|
};
|
|
|
|
|
2021-12-03 04:03:55 +00:00
|
|
|
nativeBuildInputs = [ cmake wrapQtAppsHook ];
|
2020-12-02 15:45:03 +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;
|
|
|
|
};
|
|
|
|
}
|