From 2e300b08ee2697656a76b4c95a4c66039510a239 Mon Sep 17 00:00:00 2001 From: Jakub Stachurski Date: Wed, 20 May 2026 22:35:25 +0200 Subject: Self-Package stalwart --- packages/stalwart/spam-filter.nix | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 packages/stalwart/spam-filter.nix (limited to 'packages/stalwart/spam-filter.nix') diff --git a/packages/stalwart/spam-filter.nix b/packages/stalwart/spam-filter.nix new file mode 100644 index 0000000..5497322 --- /dev/null +++ b/packages/stalwart/spam-filter.nix @@ -0,0 +1,42 @@ +{ + lib, + fetchFromGithub, + stdenv, + stalwart, + nix-update-script, +}: stdenv.mkDerivation (finalAttrs: { + pname = "spam-filter"; + version = "2.0.5"; + + src = fetchFromGithub { + owner = "stalwartlabs"; + repo = "spam-filter"; + tag = "v${finalAttrs.version}"; + hash = ""; + }; + + buildPhase = '' + bash ./build.sh + ''; + + installPhase = '' + mkdir -p $out + cp spam-filter.toml $out/ + ''; + + passthru = {updateScript = nix-update-script {};}; + + meta = { + description = "Spam filter module for the Stalwart server"; + homepage = "https://github.com/stalwartlabs/spam-filter"; + changelog = "https://github.com/stalwartlabs/spam-filter/blob/${finalAttrs.src.tag}/CHANGELOG.md"; + license = with lib.licenses; [ + mit + asl20 + ]; + # inherit (stalwart.meta) maintainers; + }; + + +}) + -- cgit v1.3.1