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
56 lines
1.5 KiB
Nix
56 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
buildGoModule (finalAttrs: {
|
|
pname = "crowdsec-firewall-bouncer";
|
|
version = "0.0.34";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "crowdsecurity";
|
|
repo = "cs-firewall-bouncer";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-lDO9pwPkbI+FDTdXBv03c0p8wbkRUiIDNl1ip3AZo2g=";
|
|
};
|
|
|
|
vendorHash = "sha256-SbpclloBgd9vffC0lBduGRqPOqmzQ0J91/KeDHCh0jo=";
|
|
|
|
ldflags = [
|
|
"-X github.com/crowdsecurity/go-cs-lib/version.Version=v${finalAttrs.version}"
|
|
];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
versionCheckProgram = "${placeholder "out"}/bin/cs-firewall-bouncer";
|
|
versionCheckProgramArg = "-version";
|
|
doInstallCheck = true;
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script {
|
|
extraArgs = [ "--version-regex=^v(\\d+\\.\\d+\\.\\d+)$" ];
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://crowdsec.net/";
|
|
downloadPage = "https://github.com/crowdsecurity/cs-firewall-bouncer";
|
|
changelog = "https://github.com/crowdsecurity/cs-firewall-bouncer/releases/tag/v${finalAttrs.version}";
|
|
description = "Crowdsec bouncer written in golang for firewalls";
|
|
longDescription = ''
|
|
CrowdSec Remediation Component written in golang for firewalls.
|
|
|
|
crowdsec-firewall-bouncer will fetch new and old decisions from a
|
|
CrowdSec API and add them to a blocklist used by supported firewalls.
|
|
'';
|
|
license = lib.licenses.mit;
|
|
mainProgram = "cs-firewall-bouncer";
|
|
maintainers = with lib.maintainers; [
|
|
tornax
|
|
jk
|
|
];
|
|
};
|
|
})
|