2021-01-31 13:08:10 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, libbsd, openssl, libmilter
|
2017-07-14 15:39:08 +01:00
|
|
|
, autoreconfHook, perl, makeWrapper }:
|
2010-02-09 10:32:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "opendkim";
|
2021-01-31 13:08:10 +00:00
|
|
|
version = "2.11.0-Beta2";
|
2016-11-23 14:49:18 +00:00
|
|
|
|
2021-01-31 13:08:10 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trusteddomainproject";
|
|
|
|
repo = "OpenDKIM";
|
|
|
|
rev = "rel-opendkim-${lib.replaceChars ["."] ["-"] version}";
|
|
|
|
sha256 = "0nx3in8sa6xna4vfacj8g60hfzk61jpj2ldag80xzxip9c3rd2pw";
|
2010-02-09 10:32:55 +00:00
|
|
|
};
|
|
|
|
|
2018-12-12 00:17:40 +00:00
|
|
|
configureFlags= [
|
|
|
|
"--with-milter=${libmilter}"
|
|
|
|
"ac_cv_func_malloc_0_nonnull=yes"
|
|
|
|
"ac_cv_func_realloc_0_nonnull=yes"
|
|
|
|
];
|
2010-02-09 10:32:55 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper ];
|
2015-11-01 21:59:44 +00:00
|
|
|
|
|
|
|
buildInputs = [ libbsd openssl libmilter perl ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/sbin/opendkim-genkey \
|
2016-02-01 18:46:16 +00:00
|
|
|
--prefix PATH : ${openssl.bin}/bin
|
2015-11-01 21:59:44 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2015-12-11 17:00:49 +00:00
|
|
|
description = "C library for producing DKIM-aware applications and an open source milter for providing DKIM service";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.opendkim.org/";
|
2015-11-01 21:59:44 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
2015-12-11 17:00:49 +00:00
|
|
|
};
|
2010-02-09 10:32:55 +00:00
|
|
|
}
|