Merge pull request #145479 from alyssais/unbound

unbound: *actually* don't run tests when cross-compiling

Changed files
+4 -2
pkgs
tools
networking
unbound
+4 -2
pkgs/tools/networking/unbound/default.nix
···
checkInputs = [ bison ];
-
doCheck = stdenv.buildPlatform == stdenv.hostPlatform;
installFlags = [ "configfile=\${out}/etc/unbound/unbound.conf" ];
···
configureFlags="$configureFlags --with-nettle=${nettle.dev} --with-libunbound-only"
configurePhase
buildPhase
-
checkPhase
installPhase
''
# get rid of runtime dependencies on $dev outputs
···
checkInputs = [ bison ];
+
doCheck = true;
installFlags = [ "configfile=\${out}/etc/unbound/unbound.conf" ];
···
configureFlags="$configureFlags --with-nettle=${nettle.dev} --with-libunbound-only"
configurePhase
buildPhase
+
if [ -n "$doCheck" ]; then
+
checkPhase
+
fi
installPhase
''
# get rid of runtime dependencies on $dev outputs