mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
ccec93c1c7
sed -i 's/ webkitgtk\b/ webkitgtk_4_0/g' pkgs/**.nix sed -i 's/(webkitgtk\b/(webkitgtk_4_0/g' pkgs/**.nix sed -i 's/\.webkitgtk\b/.webkitgtk_4_0/g' pkgs/**.nix webkitgtk is currently pointing to that specific ABI version but the alias is going to start warning
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{
|
|
rustPlatform,
|
|
lib,
|
|
fetchFromGitHub,
|
|
libsoup,
|
|
openssl,
|
|
pkg-config,
|
|
perl,
|
|
webkitgtk_4_0,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "gpauth";
|
|
version = "2.3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yuezk";
|
|
repo = "GlobalProtect-openconnect";
|
|
rev = "v${version}";
|
|
hash = "sha256-Zr888II65bUjrbStZfD0AYCXKY6VdKVJHQhbKwaY3is=";
|
|
};
|
|
|
|
buildAndTestSubdir = "apps/gpauth";
|
|
cargoHash = "sha256-AuYw8CC0bMJzIJJQXhcQajQ4SACz4aKv6rG4HMq7U18=";
|
|
|
|
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 ];
|
|
};
|
|
}
|