diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/opendkim')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/opendkim/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixpkgs/pkgs/development/libraries/opendkim/default.nix b/nixpkgs/pkgs/development/libraries/opendkim/default.nix index b3d18748f74b..22c5fca76a48 100644 --- a/nixpkgs/pkgs/development/libraries/opendkim/default.nix +++ b/nixpkgs/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 \ |