From c962702b5703090b3ab3db0d700a15d0fcfcab43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sun, 12 Nov 2017 10:05:45 +0100 Subject: [PATCH] ncurses5: fix by building with gcc6 I don't see how to bypass error: no matching function for call to 'NCursesUserPanel::get_user() const' and we use this to bootstrap ghc. --- pkgs/top-level/all-packages.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 509cb2ca58fe..f1c39fddb36e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };