openjdk*: Make bootstrap headless

This reduces the build closure size.
Reducing the build closure size reduces the number of rebuilds
across time and it helps with such tasks as bisecting the staging
branch.
This commit is contained in:
Robert Hensing 2022-09-23 15:54:19 +01:00
parent cbb16e90e6
commit 19313d0fa2

View file

@ -45,7 +45,7 @@ in {
mkBootstrap = adoptopenjdk: path: args:
/* adoptopenjdk not available for i686, so fall back to our old builds for bootstrapping */
if adoptopenjdk.jdk-hotspot.meta.available
then adoptopenjdk.jdk-hotspot
then adoptopenjdk.jdk-hotspot.override { gtkSupport = false; }
else callPackage path args;
mkOpenjdk = path-linux: path-darwin: args: