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).
This commit is contained in:
Alyssa Ross 2021-11-11 12:26:21 +00:00
parent 1103974a27
commit e07e701515
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

View File

@ -113,7 +113,9 @@ stdenv.mkDerivation rec {
configureFlags="$configureFlags --with-nettle=${nettle.dev} --with-libunbound-only"
configurePhase
buildPhase
checkPhase
if [ -n "$doCheck" ]; then
checkPhase
fi
installPhase
''
# get rid of runtime dependencies on $dev outputs