From 9f34b86c595599bf1ba47aae7b9d8155cda0f09f Mon Sep 17 00:00:00 2001 From: Lionello Lunesu Date: Sat, 23 Oct 2021 10:18:04 -0700 Subject: [PATCH] opendkim: fix darwin * fixes: configure: error: "unbound required on Darwin" --- pkgs/development/libraries/opendkim/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/opendkim/default.nix b/pkgs/development/libraries/opendkim/default.nix index b3d18748f74b..22c5fca76a48 100644 --- a/pkgs/development/libraries/opendkim/default.nix +++ b/pkgs/development/libraries/opendkim/default.nix @@ -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 \