mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "firezone-gateway";
|
|
version = "1.6.1";
|
|
src = fetchFromGitHub {
|
|
owner = "firezone";
|
|
repo = "firezone";
|
|
tag = "gateway-${finalAttrs.version}";
|
|
hash = "sha256-n72FcH5dWx5WFpKBOs+BOOzeD1noWhMD66ZR40H4nuw=";
|
|
};
|
|
|
|
cargoHash = "sha256-7nRVC+nBJ13+hRPpOoXNDwcVydTb9/+bGm3uCqqWQiU=";
|
|
sourceRoot = "${finalAttrs.src.name}/rust";
|
|
buildAndTestSubdir = "gateway";
|
|
env.RUSTFLAGS = "--cfg system_certs";
|
|
|
|
# Required to remove profiling arguments which conflict with this builder
|
|
postPatch = ''
|
|
rm .cargo/config.toml
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version-regex"
|
|
"gateway-(.*)"
|
|
];
|
|
};
|
|
|
|
meta = {
|
|
description = "WireGuard tunnel server 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-gateway";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|