3
0
Fork 0
forked from mirrors/nixpkgs

darwin-stdenv: Hack around impurity with --disable configure flag

This commit is contained in:
John Ericson 2017-08-31 18:07:29 -04:00
parent 3b6e7fe123
commit 8dbdc5dd51

View file

@ -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