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";
|
2021-10-29 19:10:26 +01:00
|
|
|
version = "1.3.4";
|
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}";
|
|
|
|
sha256 = "sha256-w2y6DOFgQ8Xpi1abibvRNpEUbBsdvwDMGqlJxQSCpVg=";
|
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;
|
|
|
|
};
|
|
|
|
}
|