summaryrefslogtreecommitdiff
path: root/packages/stalwart/spam-filter.nix
blob: 5497322aa38a8370b38fb04e77fb14b49bca85d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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;
  };


})