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
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
glib,
|
|
gtk4,
|
|
kdePackages,
|
|
lib,
|
|
openssl,
|
|
pkg-config,
|
|
rustPlatform,
|
|
wrapGAppsHook4,
|
|
graphene,
|
|
nix-update-script,
|
|
versionCheckHook,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "snx-rs";
|
|
version = "4.8.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ancwrd1";
|
|
repo = "snx-rs";
|
|
tag = "v${version}";
|
|
hash = "sha256-wVc3iddqXTpsBZqEY+WWR1Taig4crhlQqw7jypm3ZMc=";
|
|
};
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk4
|
|
kdePackages.kstatusnotifieritem
|
|
openssl
|
|
graphene
|
|
];
|
|
|
|
checkFlags = [
|
|
"--skip=platform::linux::net::tests::test_default_ip"
|
|
"--skip=platform::linux::tests::test_xfrm_check"
|
|
];
|
|
|
|
nativeInstallCheckInputs = [
|
|
versionCheckHook
|
|
];
|
|
|
|
cargoHash = "sha256-HRew3ldsgUbCh4eW1MSvoxLZobSJRjj7Eg0+XRbjFes=";
|
|
|
|
doInstallCheck = true;
|
|
versionCheckProgram = "${placeholder "out"}/bin/snx-rs";
|
|
versionCheckProgramArg = "--version";
|
|
|
|
meta = {
|
|
description = "Open source Linux client for Checkpoint VPN tunnels";
|
|
homepage = "https://github.com/ancwrd1/snx-rs";
|
|
license = lib.licenses.agpl3Plus;
|
|
changelog = "https://github.com/ancwrd1/snx-rs/blob/v${version}/CHANGELOG.md";
|
|
maintainers = with lib.maintainers; [
|
|
shavyn
|
|
];
|
|
mainProgram = "snx-rs";
|
|
};
|
|
}
|