diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2017-08-31 18:07:29 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2017-08-31 18:08:05 -0400 |
commit | 8dbdc5dd514cd727eb20d5af4c4d303e39a5b49c (patch) | |
tree | 152a189f58bd28077fdbc543172b59a2e7a2d774 /pkgs/stdenv | |
parent | 3b6e7fe123ad8dec62e780bac6efe7754a3cbca4 (diff) |
darwin-stdenv: Hack around impurity with --disable configure flag
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r-- | pkgs/stdenv/darwin/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix index 9070f4b6dca91..f4801d674e8ae 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 |