5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, webkitgtk
|
|
, wrapGAppsHook
|
|
, glib-networking
|
|
, gobject-introspection
|
|
, openconnect
|
|
, pygobject3
|
|
, requests
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "gp-saml-gui";
|
|
version = "0.1+20230507-${lib.strings.substring 0 7 src.rev}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dlenski";
|
|
repo = "gp-saml-gui";
|
|
rev = "258f47cdc4a8ed57a1eef16667f6cad0d1cb49b1";
|
|
sha256 = "sha256-g10S8C32mnOymCmGNdM8gmGpYn5/ObMJK3g6amKtQmI=";
|
|
};
|
|
|
|
buildInputs = lib.optional stdenv.isLinux glib-networking;
|
|
|
|
nativeBuildInputs = [ wrapGAppsHook gobject-introspection glib-networking ];
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
pygobject3
|
|
openconnect
|
|
] ++ lib.optional stdenv.isLinux webkitgtk;
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
--set WEBKIT_DISABLE_COMPOSITING_MODE "1"
|
|
)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Interactively authenticate to GlobalProtect VPNs that require SAML";
|
|
homepage = "https://github.com/dlenski/gp-saml-gui";
|
|
license = licenses.gpl3Only;
|
|
maintainers = [ maintainers.pallix ];
|
|
};
|
|
}
|