mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 03:43:45 +00:00
Merge pull request #272264 from ppom0/init-reaction
reaction: init at 1.3.0
This commit is contained in:
commit
dd864dc7dd
46
pkgs/by-name/re/reaction/package.nix
Normal file
46
pkgs/by-name/re/reaction/package.nix
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildGoModule,
|
||||
fetchFromGitLab,
|
||||
}:
|
||||
let
|
||||
version = "1.3.0";
|
||||
in buildGoModule {
|
||||
inherit version;
|
||||
pname = "reaction";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "framagit.org";
|
||||
owner = "ppom";
|
||||
repo = "reaction";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-hlrso4dCGwn5/jOEPvjrK0RgctB4a70UhQkF+cv6NMc=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-THUIoWFzkqaTofwH4clBgsmtUlLS9WIB2xjqW7vkhpg=";
|
||||
|
||||
ldflags = [
|
||||
"-X main.version=${version}"
|
||||
"-X main.commit=unknown"
|
||||
];
|
||||
|
||||
postBuild = ''
|
||||
gcc helpers_c/ip46tables.c -o ip46tables
|
||||
gcc helpers_c/nft46.c -o nft46
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
cp ip46tables nft46 $out/bin
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Scan logs and take action: an alternative to fail2ban";
|
||||
homepage = "https://framagit.org/ppom/reaction";
|
||||
changelog = "https://framagit.org/ppom/reaction/-/releases/v${version}";
|
||||
license = licenses.agpl3Plus;
|
||||
mainProgram = "reaction";
|
||||
maintainers = with maintainers; [ppom];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user