Merge pull request #142677 from lionello/fix-unbound-darwin

opendkim: fix darwin
This commit is contained in:
Ryan Burns 2021-10-30 18:53:41 -07:00 committed by GitHub
commit 57961975e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, libbsd, openssl, libmilter
, autoreconfHook, perl, makeWrapper }:
, autoreconfHook, perl, makeWrapper, unbound }:
stdenv.mkDerivation rec {
pname = "opendkim";
@ -16,11 +16,11 @@ stdenv.mkDerivation rec {
"--with-milter=${libmilter}"
"ac_cv_func_malloc_0_nonnull=yes"
"ac_cv_func_realloc_0_nonnull=yes"
];
] ++ lib.optional stdenv.isDarwin "--with-unbound=${unbound}";
nativeBuildInputs = [ autoreconfHook pkg-config makeWrapper ];
buildInputs = [ libbsd openssl libmilter perl ];
buildInputs = [ libbsd openssl libmilter perl ] ++ lib.optional stdenv.isDarwin unbound;
postInstall = ''
wrapProgram $out/sbin/opendkim-genkey \