unbound: don't run tests when cross-compiling

stdenv.mkDerivation will automatically set doCheck to false when
cross-compiling (which is why the default checkPhase doesn't happen).

+3 -1
+3 -1
pkgs/tools/networking/unbound/default.nix
··· 113 113 configureFlags="$configureFlags --with-nettle=${nettle.dev} --with-libunbound-only" 114 114 configurePhase 115 115 buildPhase 116 - checkPhase 116 + if [ -n "$doCheck" ]; then 117 + checkPhase 118 + fi 117 119 installPhase 118 120 '' 119 121 # get rid of runtime dependencies on $dev outputs