unbound: only use the two-phase build on Linux

Hydra shows some problems on Darwin with structure defns/decls.
http://hydra.nixos.org/build/49463873/nixlog/1/raw
This commit is contained in:
Vladimír Čunát 2017-02-28 22:30:09 +01:00
parent ffcc897090
commit 5c89ab7cb6
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -26,9 +26,10 @@ stdenv.mkDerivation rec {
installFlags = [ "configfile=\${out}/etc/unbound/unbound.conf" ];
preFixup =
preFixup = stdenv.lib.optionalString stdenv.isLinux
# Build libunbound again, but only against nettle instead of openssl.
# This avoids gnutls.out -> unbound.lib -> openssl.out.
# There was some problem with this on Darwin; let's not complicate non-Linux.
''
configureFlags="$configureFlags --with-nettle=${nettle.dev} --with-libunbound-only"
configurePhase