{ 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; }; })