reaction: 2.3.0 -> 2.3.1; reaction-plugin-nftables: init (#516622)

This commit is contained in:
Martin Weinelt
2026-05-06 01:17:59 +00:00
committed by GitHub
3 changed files with 23 additions and 9 deletions
@@ -240,6 +240,10 @@ in
''
);
systemd.slices.system-reaction = {
description = "Reaction system slice";
};
systemd.services.reaction = {
description = "A daemon that scans program outputs for repeated patterns, and takes action.";
documentation = [ "https://reaction.ppom.me" ];
@@ -250,6 +254,7 @@ in
serviceConfig = {
Type = "simple";
KillMode = "mixed"; # for plugins
Slice = "system-reaction.slice";
User = if (!cfg.runAsRoot) then "reaction" else "root";
ExecStart = ''
${getExe cfg.package} start -c ${settingsDir}${
+4 -9
View File
@@ -13,22 +13,17 @@
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "reaction";
version = "2.3.0";
version = "2.3.1-11";
src = fetchFromGitLab {
domain = "framagit.org";
owner = "ppom";
repo = "reaction";
tag = "v${finalAttrs.version}";
hash = "sha256-OvNJsR9W5MlicqUpr1aOLJ7pI7H7guq1vAlC/hh1Q2o=";
rev = "c0868d6fe1d155de183a89729b5f3f0ede7be4a2";
hash = "sha256-QlSXZ2Wk1OXzAY2x6YjtW+xNchY+Ghb/6AsJgjfgoFE=";
};
patches = [
# remove patch in next tagged version
./add-support-for-macos.patch
];
cargoHash = "sha256-BOFZlVBKf6fjW1L1J8u7Vf+fzNJHlEtQI6YafDjlZ4U=";
cargoHash = "sha256-FYd7I93MAAzD6y0VMd9kMU7DAgS6v5CKt2KjrskaKeo=";
nativeBuildInputs = [ installShellFiles ];
@@ -0,0 +1,14 @@
{
nftables,
pkg-config,
rustPlatform,
reaction,
...
}:
reaction.mkReactionPlugin "reaction-plugin-nftables" {
buildInputs = [ nftables ];
nativeBuildInputs = [
rustPlatform.bindgenHook
pkg-config
];
}