nixpkgs/pkgs/development/libraries/opendkim/default.nix

38 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, libbsd, openssl, libmilter
2017-07-14 15:39:08 +01:00
, autoreconfHook, perl, makeWrapper }:
stdenv.mkDerivation rec {
pname = "opendkim";
2016-11-23 14:49:18 +00:00
version = "2.10.3";
src = fetchurl {
url = "mirror://sourceforge/opendkim/files/${pname}-${version}.tar.gz";
sha256 = "06v8bqhh604sz9rh5bvw278issrwjgc4h1wx2pz9a84lpxbvm823";
};
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"
];
2017-07-14 15:39:08 +01:00
nativeBuildInputs = [ autoreconfHook pkgconfig makeWrapper ];
buildInputs = [ libbsd openssl libmilter perl ];
2017-07-14 15:39:08 +01:00
patches = [ ./openssl-1.1.patch ];
postInstall = ''
wrapProgram $out/sbin/opendkim-genkey \
--prefix PATH : ${openssl.bin}/bin
'';
meta = with stdenv.lib; {
description = "C library for producing DKIM-aware applications and an open source milter for providing DKIM service";
homepage = "http://www.opendkim.org/";
maintainers = with maintainers; [ abbradar ];
license = licenses.bsd3;
platforms = platforms.unix;
};
}