depot/third_party/nixpkgs/pkgs/tools/networking/gp-saml-gui/default.nix

48 lines
1.1 KiB
Nix
Raw Normal View History

{ 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 ];
};
}