mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
opendkim: fix darwin
* fixes: configure: error: "unbound required on Darwin"
This commit is contained in:
parent
477e740ce5
commit
9f34b86c59
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user