fosrl-gerbil: init at 1.0.0 (#414975)
This commit is contained in:
commit
c473d4ed67
@ -11091,6 +11091,12 @@
|
||||
githubId = 7558482;
|
||||
name = "Jack Gerrits";
|
||||
};
|
||||
jackr = {
|
||||
name = "Jack Rosenberg";
|
||||
email = "nixos@jackr.eu";
|
||||
github = "jackrosenberg";
|
||||
githubId = 56937175;
|
||||
};
|
||||
jacobkoziej = {
|
||||
name = "Jacob Koziej";
|
||||
email = "jacobkoziej@gmail.com";
|
||||
|
36
pkgs/by-name/fo/fosrl-gerbil/package.nix
Normal file
36
pkgs/by-name/fo/fosrl-gerbil/package.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
lib,
|
||||
iptables,
|
||||
fetchFromGitHub,
|
||||
buildGoModule,
|
||||
replaceVars,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "fosrl-gerbil";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fosrl";
|
||||
repo = "gerbil";
|
||||
tag = version;
|
||||
hash = "sha256-6ZmnokXmn4KIfNZT9HrraYP4fjfY2C0sK+xAJyq/pkU=";
|
||||
};
|
||||
# patch out the /usr/sbin/iptables
|
||||
postPatch = ''
|
||||
substituteInPlace main.go \
|
||||
--replace-fail '/usr/sbin/iptables' '${lib.getExe iptables}'
|
||||
'';
|
||||
|
||||
vendorHash = "sha256-lYJjw+V94oxILu+akUnzGACtsU7CLGwljysRvyUk+yA=";
|
||||
|
||||
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 ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user