summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJohn Ericson <Ericson2314@yahoo.com>2017-08-31 19:33:27 -0400
committerGitHub <noreply@github.com>2017-08-31 19:33:27 -0400
commit29c4294f859354f20837e08b25ecdbaaa2bd4e02 (patch)
tree152a189f58bd28077fdbc543172b59a2e7a2d774 /pkgs
parent095af3e63b26e4984c95de7d8a495503e6bfa605 (diff)
parent8dbdc5dd514cd727eb20d5af4c4d303e39a5b49c (diff)
downloadnixlib-29c4294f859354f20837e08b25ecdbaaa2bd4e02.tar
nixlib-29c4294f859354f20837e08b25ecdbaaa2bd4e02.tar.gz
nixlib-29c4294f859354f20837e08b25ecdbaaa2bd4e02.tar.bz2
nixlib-29c4294f859354f20837e08b25ecdbaaa2bd4e02.tar.lz
nixlib-29c4294f859354f20837e08b25ecdbaaa2bd4e02.tar.xz
nixlib-29c4294f859354f20837e08b25ecdbaaa2bd4e02.tar.zst
nixlib-29c4294f859354f20837e08b25ecdbaaa2bd4e02.zip
Merge pull request #28798 from obsidiansystems/darwin-no-nativeTools
darwin-stdenv: Don't use `nativeTools`
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/stdenv/darwin/default.nix19
1 files changed, 15 insertions, 4 deletions
diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix
index 6739ce3f5c8f..f4801d674e8a 100644
--- a/pkgs/stdenv/darwin/default.nix
+++ b/pkgs/stdenv/darwin/default.nix
@@ -79,15 +79,17 @@ in rec {
           inherit shell;
           inherit (last) stdenv;
 
-          nativeTools  = true;
-          nativePrefix = bootstrapTools;
+          nativeTools  = false;
           nativeLibc   = false;
           buildPackages = lib.optionalAttrs (last ? stdenv) {
             inherit (last) stdenv;
           };
           libc         = last.pkgs.darwin.Libsystem;
           isClang      = true;
-          cc           = { name = "clang-9.9.9"; outPath = bootstrapTools; };
+          cc           = { name = "clang-9.9.9";     outPath = bootstrapTools; };
+          binutils     = { name = "binutils-9.9.9";  outPath = bootstrapTools; };
+          coreutils    = { name = "coreutils-9.9.9"; outPath = bootstrapTools; };
+          gnugrep      = { name = "gnugrep-9.9.9";   outPath = bootstrapTools; };
         };
 
         preHook = stage0.stdenv.lib.optionalString (shell == "${bootstrapTools}/bin/bash") ''
@@ -267,7 +269,16 @@ in rec {
     extraPreHook = ''
       export PATH_LOCALE=${pkgs.darwin.locale}/share/locale
     '';
-    overrides = persistent;
+    overrides = self: super: (persistent self super) // {
+      # Hack to make sure we don't link ncurses in bootstrap tools. The proper
+      # solution is to avoid passing -L/nix-store/...-bootstrap-tools/lib,
+      # quite a sledgehammer just to get the C runtime.
+      gettext = super.gettext.overrideAttrs (old: {
+         configureFlags = old.configureFlags ++ [
+           "--disable-curses"
+         ];
+      });
+    };
   };
 
   stdenvDarwin = prevStage: let