summary refs log tree commit diff
path: root/pkgs/stdenv/darwin
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2017-08-31 18:07:29 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-08-31 18:08:05 -0400
commit8dbdc5dd514cd727eb20d5af4c4d303e39a5b49c (patch)
tree152a189f58bd28077fdbc543172b59a2e7a2d774 /pkgs/stdenv/darwin
parent3b6e7fe123ad8dec62e780bac6efe7754a3cbca4 (diff)
downloadnixlib-8dbdc5dd514cd727eb20d5af4c4d303e39a5b49c.tar
nixlib-8dbdc5dd514cd727eb20d5af4c4d303e39a5b49c.tar.gz
nixlib-8dbdc5dd514cd727eb20d5af4c4d303e39a5b49c.tar.bz2
nixlib-8dbdc5dd514cd727eb20d5af4c4d303e39a5b49c.tar.lz
nixlib-8dbdc5dd514cd727eb20d5af4c4d303e39a5b49c.tar.xz
nixlib-8dbdc5dd514cd727eb20d5af4c4d303e39a5b49c.tar.zst
nixlib-8dbdc5dd514cd727eb20d5af4c4d303e39a5b49c.zip
darwin-stdenv: Hack around impurity with --disable configure flag
Diffstat (limited to 'pkgs/stdenv/darwin')
-rw-r--r--pkgs/stdenv/darwin/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix
index 9070f4b6dca9..f4801d674e8a 100644
--- a/pkgs/stdenv/darwin/default.nix
+++ b/pkgs/stdenv/darwin/default.nix
@@ -269,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