From 19313d0fa25e0180133ae9dfb936db80f68d0a13 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Fri, 23 Sep 2022 15:54:19 +0100 Subject: [PATCH] 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. --- pkgs/top-level/java-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/java-packages.nix b/pkgs/top-level/java-packages.nix index c246040a9747..cb4f15ab861c 100644 --- a/pkgs/top-level/java-packages.nix +++ b/pkgs/top-level/java-packages.nix @@ -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: