Skip to content

Commit

Permalink
darwin-stdenv: Hack around impurity with --disable configure flag
Browse files Browse the repository at this point in the history
(cherry picked from commit 8dbdc5d)
  • Loading branch information
Ericson2314 committed Sep 3, 2017
1 parent 2a91d41 commit fb1a440
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkgs/stdenv/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb1a440

Please sign in to comment.