diff options
| author | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2026-05-20 22:35:25 +0200 |
|---|---|---|
| committer | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2026-05-20 22:35:25 +0200 |
| commit | 2e300b08ee2697656a76b4c95a4c66039510a239 (patch) | |
| tree | 36996b3ab8ae6161e0d466b6f5233f0066af0ac2 /packages/stalwart/spam-filter.nix | |
| parent | 98080b79cfbac8f4a7c17af91e697ae84278f8ab (diff) | |
Self-Package stalwart
Diffstat (limited to 'packages/stalwart/spam-filter.nix')
| -rw-r--r-- | packages/stalwart/spam-filter.nix | 42 |
1 files changed, 42 insertions, 0 deletions
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; + }; + + +}) + |
