Files
nixpkgs/pkgs/by-name/fo/fosrl-gerbil/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

40 lines
906 B
Nix

{
lib,
iptables,
fetchFromGitHub,
buildGoModule,
}:
buildGoModule rec {
pname = "gerbil";
version = "1.2.1";
src = fetchFromGitHub {
owner = "fosrl";
repo = "gerbil";
tag = version;
hash = "sha256-Pnti0agkohRBWQ42cqNOA5TnnSLP9JbOK1eyGf88cao=";
};
vendorHash = "sha256-Sz+49ViQUwJCy7wXDrQf7c76rOZbSGBCgB+Du8T6ug0=";
# patch out the /usr/sbin/iptables
postPatch = ''
substituteInPlace main.go \
--replace-fail '/usr/sbin/iptables' '${lib.getExe iptables}'
'';
meta = {
description = "Simple WireGuard interface management server";
mainProgram = "gerbil";
homepage = "https://github.com/fosrl/gerbil";
changelog = "https://github.com/fosrl/gerbil/releases/tag/${version}";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [
jackr
sigmasquadron
];
platforms = lib.platforms.linux;
};
}