Merge pull request #145479 from alyssais/unbound

unbound: *actually* don't run tests when cross-compiling
This commit is contained in:
Bernardo Meurer 2021-11-11 07:19:48 -08:00 committed by GitHub
commit 00dce9574b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,7 +95,7 @@ stdenv.mkDerivation rec {
checkInputs = [ bison ];
doCheck = stdenv.buildPlatform == stdenv.hostPlatform;
doCheck = true;
installFlags = [ "configfile=\${out}/etc/unbound/unbound.conf" ];
@ -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