2

Add MIT license and Nix packaging

This commit is contained in:
2026-03-12 01:13:57 +01:00
parent 4e87d84237
commit 5fa2f06ce6
6 changed files with 260 additions and 0 deletions

20
package.nix Normal file
View File

@@ -0,0 +1,20 @@
{ buildGoModule, lib }:
buildGoModule {
pname = "caddy-opnsense-blocker";
version = "0.1.0";
src = lib.cleanSource ./.;
subPackages = [ "cmd/caddy-opnsense-blocker" ];
vendorHash = "sha256-xS1nuEjnpkKbmresj35UtNOps0dotgPCQn/bjRYp8Xk=";
env.CGO_ENABLED = 0;
meta = with lib; {
description = "Real-time Caddy log ingestion with manual review and OPNsense blocking";
homepage = "https://git.dern.ovh/infrastructure/caddy-opnsense-blocker";
license = licenses.mit;
mainProgram = "caddy-opnsense-blocker";
platforms = platforms.linux;
};
}