mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:48:10 +00:00
21f17d69f6
Build-tested on x86_64 Linux & Mac.
34 lines
950 B
Nix
34 lines
950 B
Nix
{ stdenv, fetchFromGitHub, cmake, bison, flex, openssl, pcre, libmilter, opendkim,
|
|
libmemcached }:
|
|
|
|
let patchedLibmilter = stdenv.lib.overrideDerivation libmilter (_ : {
|
|
patches = libmilter.patches ++ [ ./fd-passing-libmilter.patch ];
|
|
});
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "rmilter-${version}";
|
|
version = "1.8.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vstakhov";
|
|
repo = "rmilter";
|
|
rev = version;
|
|
sha256 = "1bfql9v243iw3v87kjgwcx4xxw7g5nv1rsi9gk8p7xg5mzrhi3bn";
|
|
};
|
|
|
|
nativeBuildInputs = [ bison cmake flex ];
|
|
buildInputs = [ libmemcached patchedLibmilter openssl pcre opendkim];
|
|
|
|
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;
|
|
};
|
|
}
|