diff options
author | Lionello Lunesu <lio+git@lunesu.com> | 2021-10-23 10:18:04 -0700 |
---|---|---|
committer | Lionello Lunesu <lio+git@lunesu.com> | 2021-10-23 15:33:19 -0700 |
commit | 9f34b86c595599bf1ba47aae7b9d8155cda0f09f (patch) | |
tree | 734c6ce9ace6707272ea8ac6ffe4e9d14d1fb0d5 /pkgs/development/libraries/opendkim/default.nix | |
parent | 477e740ce53ac35a1147ed8916fdba63280a8bb3 (diff) |
opendkim: fix darwin
* fixes: configure: error: "unbound required on Darwin"
Diffstat (limited to 'pkgs/development/libraries/opendkim/default.nix')
-rw-r--r-- | pkgs/development/libraries/opendkim/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/libraries/opendkim/default.nix b/pkgs/development/libraries/opendkim/default.nix index b3d18748f74b8..22c5fca76a480 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 \ |