Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, webkitgtk_4_0
|
|
, wrapGAppsHook3
|
|
, glib-networking
|
|
, gobject-introspection
|
|
, openconnect
|
|
, pygobject3
|
|
, requests
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "gp-saml-gui";
|
|
version = "0.1+20240731-${lib.strings.substring 0 7 src.rev}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dlenski";
|
|
repo = "gp-saml-gui";
|
|
rev = "c46af04b3a6325b0ecc982840d7cfbd1629b6d43";
|
|
sha256 = "sha256-4MFHad1cuCWawy2hrqdXOgud0pXpYiV9J3Jwqyg4Udk=";
|
|
};
|
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isLinux glib-networking;
|
|
|
|
nativeBuildInputs = [ wrapGAppsHook3 gobject-introspection glib-networking ];
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
pygobject3
|
|
openconnect
|
|
] ++ lib.optional stdenv.hostPlatform.isLinux webkitgtk_4_0;
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
--set WEBKIT_DISABLE_COMPOSITING_MODE "1"
|
|
)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Interactively authenticate to GlobalProtect VPNs that require SAML";
|
|
mainProgram = "gp-saml-gui";
|
|
homepage = "https://github.com/dlenski/gp-saml-gui";
|
|
license = licenses.gpl3Only;
|
|
maintainers = [ maintainers.pallix ];
|
|
};
|
|
}
|