Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
webkitgtk_4_1,
|
|
wrapGAppsHook3,
|
|
glib-networking,
|
|
gobject-introspection,
|
|
openconnect,
|
|
}:
|
|
python3Packages.buildPythonPackage rec {
|
|
pname = "gp-saml-gui";
|
|
version = "0.1+20240731-${lib.strings.substring 0 7 src.rev}";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dlenski";
|
|
repo = "gp-saml-gui";
|
|
rev = "c46af04b3a6325b0ecc982840d7cfbd1629b6d43";
|
|
hash = "sha256-4MFHad1cuCWawy2hrqdXOgud0pXpYiV9J3Jwqyg4Udk=";
|
|
};
|
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isLinux glib-networking;
|
|
|
|
nativeBuildInputs = [
|
|
wrapGAppsHook3
|
|
gobject-introspection
|
|
glib-networking
|
|
];
|
|
|
|
dependencies =
|
|
with python3Packages;
|
|
[
|
|
requests
|
|
pygobject3
|
|
]
|
|
++ [
|
|
openconnect
|
|
]
|
|
++ lib.optional stdenv.hostPlatform.isLinux webkitgtk_4_1;
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
--set WEBKIT_DISABLE_COMPOSITING_MODE "1"
|
|
)
|
|
'';
|
|
|
|
meta = {
|
|
description = "Interactively authenticate to GlobalProtect VPNs that require SAML";
|
|
mainProgram = "gp-saml-gui";
|
|
homepage = "https://github.com/dlenski/gp-saml-gui";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ pallix ];
|
|
};
|
|
}
|