From dcda21b1556f0b3618dc8f7bd196eaab1fd5089c Mon Sep 17 00:00:00 2001 From: Aliaksandr Date: Thu, 14 May 2026 07:00:22 +0300 Subject: [PATCH] stdenv: linux: inherit python3Minimal at stage3/stage4 python3Minimal was being rebuilt at stages 3 and 4. It is used only as a native build input (e.g. meson, glib build helpers); its outputs do not appear in the final stdenv's runtime closure. Inheriting from prevStage at stage3 and stage4 collapses 2 -> 1 build. Build-only dependency, safe with respect to the `disallowedRequisites` check on the final stdenv-linux. --- pkgs/stdenv/linux/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/stdenv/linux/default.nix b/pkgs/stdenv/linux/default.nix index e9116d03be92..80802992360d 100644 --- a/pkgs/stdenv/linux/default.nix +++ b/pkgs/stdenv/linux/default.nix @@ -570,6 +570,7 @@ in libxcrypt nukeReferences autoconf269 + python3Minimal ; # We build a special copy of libgmp which doesn't use libstdc++, because # xgcc++'s libstdc++ references the bootstrap-files (which is what @@ -634,6 +635,7 @@ in linuxHeaders libidn2 libunistring + python3Minimal ; ${localSystem.libc} = prevStage.${localSystem.libc}; # Since this is the first fresh build of binutils since stage2, our own runtimeShell will be used.