nixpkgs/pkgs/by-name/gp/gpauth/package.nix
Rahul Rameshbabu df5830d013 gpauth: limit platforms to *-linux
Since gpauth depends on webkitgtk, it cannot be trivially built on the
darwin platform. Even though webkitgtk is explicitly marked as broken for
darwin, this does not help with showing what platforms gpauth (and
gpclient) is supported on when doing package searching.

Signed-off-by: Rahul Rameshbabu <sergeantsagara@protonmail.com>
2024-11-18 23:55:39 -08:00

58 lines
1.3 KiB
Nix

{
rustPlatform,
lib,
fetchFromGitHub,
libsoup,
openssl,
pkg-config,
perl,
webkitgtk_4_0,
}:
rustPlatform.buildRustPackage rec {
pname = "gpauth";
version = "2.3.9";
src = fetchFromGitHub {
owner = "yuezk";
repo = "GlobalProtect-openconnect";
rev = "v${version}";
hash = "sha256-s+uCpNrwQvdIINLSIbtcCCBg469J2xtlyiwDYqtXrQs=";
};
buildAndTestSubdir = "apps/gpauth";
cargoHash = "sha256-QHqPVsMPKgAhhZwah3g1jqidl3UnvvKZnM4r1coUHSs=";
nativeBuildInputs = [
perl
pkg-config
];
buildInputs = [
libsoup
openssl
webkitgtk_4_0
];
meta = with lib; {
changelog = "https://github.com/${src.owner}/${src.repo}/blob/${src.rev}/changelog.md";
description = "A CLI for GlobalProtect VPN, based on OpenConnect, supports the SSO authentication method";
longDescription = ''
A CLI for GlobalProtect VPN, based on OpenConnect, supports the SSO
authentication method. Inspired by gp-saml-gui.
The CLI version is always free and open source in this repo. It has almost
the same features as the GUI version.
'';
homepage = "https://github.com/${src.owner}/${src.repo}";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [
binary-eater
m1dugh
];
platforms = [
"aarch64-linux"
"x86_64-linux"
];
};
}