about summary refs log tree commit diff stats
path: root/pkgs/by-name/st/stalwart-mail-free/spam-filter.nix
blob: ce3466de6fcd3856836b0a8e86b1e858b96f017f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
  stdenv,
  fetchFromGitHub,
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "spam-filter";
  version = "2.0.2";

  src = fetchFromGitHub {
    owner = "stalwartlabs";
    repo = "spam-filter";
    tag = "v${finalAttrs.version}";
    hash = "sha256-p2F0bwYBNWeoHjp9csWWaqeOISk9dNQT28OqkhUr7ew=";
  };

  buildPhase = ''
    bash ./build.sh
  '';

  installPhase = ''
    mkdir --parents "$out"
    cp ./spam-filter.toml "$out/"
  '';
})