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
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "firezone-headless-client";
|
|
version = "1.5.3";
|
|
src = fetchFromGitHub {
|
|
owner = "firezone";
|
|
repo = "firezone";
|
|
tag = "headless-client-${version}";
|
|
hash = "sha256-Tu0Bq/Axj05dCRCd1eB7CiOXQ5n4i8hnE3ZiGCQ5ZdY=";
|
|
};
|
|
|
|
cargoHash = "sha256-wlf+TtrRG7hHNav7WqLn2DSX9QkKFVzyiKP5CRdXlNY=";
|
|
sourceRoot = "${src.name}/rust";
|
|
buildAndTestSubdir = "headless-client";
|
|
RUSTFLAGS = "--cfg system_certs";
|
|
|
|
# Required to remove profiling arguments which conflict with this builder
|
|
postPatch = ''
|
|
rm .cargo/config.toml
|
|
'';
|
|
|
|
# Required to run tests
|
|
preCheck = ''
|
|
export XDG_RUNTIME_DIR=$(mktemp -d)
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version-regex"
|
|
"headless-client-(.*)"
|
|
];
|
|
};
|
|
|
|
meta = {
|
|
description = "CLI client for the Firezone zero-trust access platform";
|
|
homepage = "https://github.com/firezone/firezone";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
oddlama
|
|
patrickdag
|
|
];
|
|
mainProgram = "firezone-headless-client";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|