ncurses5: fix by building with gcc6

I don't see how to bypass
  error: no matching function for call to 'NCursesUserPanel<T>::get_user() const'
and we use this to bootstrap ghc.
This commit is contained in:
Vladimír Čunát 2017-11-12 10:05:45 +01:00
parent 80e8e555b4
commit c962702b57
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -9963,8 +9963,13 @@ with pkgs;
notify-sharp = callPackage ../development/libraries/notify-sharp { };
ncurses5 = callPackage ../development/libraries/ncurses { abiVersion = "5"; };
ncurses6 = callPackage ../development/libraries/ncurses { abiVersion = "6"; };
ncurses5 = callPackage ../development/libraries/ncurses {
stdenv = if stdenv.cc.isGNU then overrideCC stdenv gcc6 else stdenv; # Hacky!
abiVersion = "5";
};
ncurses6 = callPackage ../development/libraries/ncurses {
abiVersion = "6";
};
ncurses = if stdenv.isDarwin then ncurses5 else ncurses6;
neardal = callPackage ../development/libraries/neardal { };