From 3bbcd489b9f46f951df5774291ebd346842a6d6d Mon Sep 17 00:00:00 2001 From: phanirithvij Date: Thu, 12 Feb 2026 13:05:55 +0530 Subject: [PATCH] reaction: 2.2.1 -> 2.3.0 Co-authored-by: ppom <38916722+ppom0@users.noreply.github.com> Signed-off-by: phanirithvij --- pkgs/by-name/re/reaction/package.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/re/reaction/package.nix b/pkgs/by-name/re/reaction/package.nix index e5780fb044cf..e83a254f4df4 100644 --- a/pkgs/by-name/re/reaction/package.nix +++ b/pkgs/by-name/re/reaction/package.nix @@ -1,26 +1,28 @@ { lib, stdenv, - nixosTests, rustPlatform, fetchFromGitLab, + versionCheckHook, installShellFiles, nix-update-script, + + nixosTests, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "reaction"; - version = "2.2.1"; + version = "2.3.0"; src = fetchFromGitLab { domain = "framagit.org"; owner = "ppom"; repo = "reaction"; tag = "v${finalAttrs.version}"; - hash = "sha256-81i0bkrf86adQWxeZgIoZp/zQQbRJwPqQqZci0ANRFw="; + hash = "sha256-OvNJsR9W5MlicqUpr1aOLJ7pI7H7guq1vAlC/hh1Q2o="; }; - cargoHash = "sha256-Bf9XmlY0IMPY4Convftd0Hv8mQbYoiE8WrkkAeaS6Z8="; + cargoHash = "sha256-BOFZlVBKf6fjW1L1J8u7Vf+fzNJHlEtQI6YafDjlZ4U="; nativeBuildInputs = [ installShellFiles ]; @@ -40,13 +42,13 @@ rustPlatform.buildRustPackage (finalAttrs: { # flaky and fails in hydra "--skip=concepts::config::tests::merge_config_distinct_concurrency" ]; + cargoTestFlags = [ # Skip integration tests for the same reason "--lib" ]; postInstall = '' - installBin $releaseDir/ip46tables $releaseDir/nft46 installManPage $releaseDir/reaction*.1 installShellCompletion --cmd reaction \ --bash $releaseDir/reaction.bash \ @@ -62,15 +64,16 @@ rustPlatform.buildRustPackage (finalAttrs: { passthru.updateScript = nix-update-script { }; passthru.tests = { inherit (nixosTests) reaction reaction-firewall; }; + passthru.plugins = reaction-plugins; meta = { + changelog = "https://framagit.org/ppom/reaction/-/releases/v${finalAttrs.version}"; description = "Scan logs and take action: an alternative to fail2ban"; homepage = "https://framagit.org/ppom/reaction"; - changelog = "https://framagit.org/ppom/reaction/-/releases/v${finalAttrs.version}"; license = lib.licenses.agpl3Plus; mainProgram = "reaction"; maintainers = with lib.maintainers; [ ppom ]; - teams = [ lib.teams.ngi ]; platforms = lib.platforms.unix; + teams = [ lib.teams.ngi ]; }; })