2016-04-25 16:29:36 +03:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, bison, flex, openssl, pcre, libmilter, opendkim,
|
|
|
|
libmemcached }:
|
2016-01-03 01:45:03 +03:00
|
|
|
|
2016-02-12 10:48:15 +03:00
|
|
|
let patchedLibmilter = stdenv.lib.overrideDerivation libmilter (_ : {
|
|
|
|
patches = libmilter.patches ++ [ ./fd-passing-libmilter.patch ];
|
|
|
|
});
|
|
|
|
in
|
|
|
|
|
2016-01-03 01:45:03 +03:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "rmilter-${version}";
|
2016-06-21 15:38:03 +03:00
|
|
|
version = "1.8.5";
|
2016-02-18 06:41:06 +03:00
|
|
|
|
2016-01-03 01:45:03 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vstakhov";
|
|
|
|
repo = "rmilter";
|
|
|
|
rev = version;
|
2016-06-21 15:38:03 +03:00
|
|
|
sha256 = "1bfql9v243iw3v87kjgwcx4xxw7g5nv1rsi9gk8p7xg5mzrhi3bn";
|
2016-01-03 01:45:03 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ bison cmake flex ];
|
2016-04-25 16:29:36 +03:00
|
|
|
buildInputs = [ libmemcached patchedLibmilter openssl pcre opendkim];
|
2016-01-03 01:45:03 +03:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/vstakhov/rmilter";
|
2016-04-25 16:29:36 +03:00
|
|
|
license = licenses.asl20;
|
2016-02-18 06:41:06 +03:00
|
|
|
description = ''
|
|
|
|
Daemon to integrate rspamd and milter compatible MTA, for example
|
|
|
|
postfix or sendmail
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [ avnik fpletz ];
|
2016-08-02 20:50:55 +03:00
|
|
|
platforms = with platforms; linux;
|
2016-01-03 01:45:03 +03:00
|
|
|
};
|
|
|
|
}
|