about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/mail/rmilter/default.nix
blob: 9d7730e399f3ac53cd52f7fb6c346e88b87504f1 (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
25
26
27
28
29
30
31
32
33
{ stdenv, fetchFromGitHub, cmake, bison, flex, pkgconfig, openssl, pcre
, libmilter, opendkim, libmemcached, glib }:

let patchedLibmilter = stdenv.lib.overrideDerivation  libmilter (_ : {
    patches = libmilter.patches ++ [ ./fd-passing-libmilter.patch ];
});
in

stdenv.mkDerivation rec {
  pname = "rmilter";
  version = "1.10.0";

  src = fetchFromGitHub {
    owner = "vstakhov";
    repo = "rmilter";
    rev = version;
    sha256 = "1gbp6jah88l6xqgflim01ycyp63l733bgir65fxnnrmifj1qzymh";
  };

  nativeBuildInputs = [ bison cmake flex pkgconfig ];
  buildInputs = [ libmemcached patchedLibmilter openssl pcre opendkim glib ];

  meta = with stdenv.lib; {
    homepage = https://github.com/vstakhov/rmilter;
    license = licenses.asl20;
    description = ''
      Daemon to integrate rspamd and milter compatible MTA, for example
      postfix or sendmail
    '';
    maintainers = with maintainers; [ avnik fpletz ];
    platforms = with platforms; linux;
  };
}