summary refs log tree commit diff
path: root/pkgs/stdenv/linux
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-08-19 19:22:13 +0100
committerGitHub <noreply@github.com>2022-08-19 19:22:13 +0100
commita0219e7fb788bdf47d4c5e594001cd91c5992ef9 (patch)
tree62f0583b497fab8738483c8dbb32c1db7e2703a9 /pkgs/stdenv/linux
parentf9474c7d95a5be27af2f2af87b5beb01388a14e8 (diff)
parentf6ee60dde4a00f94d57f44ae768b3f5ccb228672 (diff)
downloadnixpkgs-a0219e7fb788bdf47d4c5e594001cd91c5992ef9.tar
nixpkgs-a0219e7fb788bdf47d4c5e594001cd91c5992ef9.tar.gz
nixpkgs-a0219e7fb788bdf47d4c5e594001cd91c5992ef9.tar.bz2
nixpkgs-a0219e7fb788bdf47d4c5e594001cd91c5992ef9.tar.lz
nixpkgs-a0219e7fb788bdf47d4c5e594001cd91c5992ef9.tar.xz
nixpkgs-a0219e7fb788bdf47d4c5e594001cd91c5992ef9.tar.zst
nixpkgs-a0219e7fb788bdf47d4c5e594001cd91c5992ef9.zip
Merge pull request #181536 from trofi/fix-gnumake-guile
gnumake: unconditionally disable guileSupport on bootstrap
Diffstat (limited to 'pkgs/stdenv/linux')
-rw-r--r--pkgs/stdenv/linux/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/stdenv/linux/default.nix b/pkgs/stdenv/linux/default.nix
index 7c0209b33ae..6e61b6f12be 100644
--- a/pkgs/stdenv/linux/default.nix
+++ b/pkgs/stdenv/linux/default.nix
@@ -356,6 +356,10 @@ in
       #   stage5.gcc -> stage4.coreutils -> stage3.glibc -> bootstrap
       gmp = lib.makeOverridable (super.gmp.override { stdenv = self.stdenv; }).overrideAttrs (a: { pname = "${a.pname}-stage4"; });
 
+      # To allow users' overrides inhibit dependencies too heavy for
+      # bootstrap, like guile: https://github.com/NixOS/nixpkgs/issues/181188
+      gnumake = super.gnumake.override { inBootstrap = true; };
+
       gcc = lib.makeOverridable (import ../../build-support/cc-wrapper) {
         nativeTools = false;
         nativeLibc = false;
@@ -446,7 +450,7 @@ in
       overrides = self: super: {
         inherit (prevStage)
           gzip bzip2 xz bash coreutils diffutils findutils gawk
-          gnumake gnused gnutar gnugrep gnupatch patchelf
+          gnused gnutar gnugrep gnupatch patchelf
           attr acl zlib pcre libunistring;
         ${localSystem.libc} = getLibc prevStage;
 
@@ -457,6 +461,7 @@ in
           inherit (self) stdenv runCommandLocal patchelf libunistring;
         };
 
+        gnumake = super.gnumake.override { inBootstrap = false; };
       } // lib.optionalAttrs (super.stdenv.targetPlatform == localSystem) {
         # Need to get rid of these when cross-compiling.
         inherit (prevStage) binutils binutils-unwrapped;