nixpkgs/pkgs/development/compilers/ghc
Alex Tunstall 4b00fbf163 haskell.compiler.ghc*: correctly account for ncurses in cross
1. Explicitly set WITH_TERMINFO. We usually match GHC's behavior well,
   but it is better to tie the Nix option to make explicitly.
   Unfortunately, the same is very complicated to achieve with
   hadrian (iirc).
2. Disable enableTerminfo if we are cross-compiling. This matches
   the behavior of GHC's build system, so we'll have to match it now.
   It also reduces the ncurses-related headache a bit.
3. Stop passing --with-curses* flags. Unfortunately, GHC does not
   account for the fact that different platforms need different ncurses
   libraries. This is somewhat migitated by the fact that ncurses is
   only ever needed for the build platform if we are cross compiling,
   but I seem to remember it leaking into the final GHC somehow.
   A more reliable alternative is relying on the cc/ld wrapper scripts,
   as they'll always pull out the correct ncurses out of the environment
   when GHC's build system passes -lcurses.
4. Unconditionally add ncurses to depsBuildBuild. Stage0 unconditionally
   builds terminfo (maybe the stage1 compiler needs it?), so we need to
   make sure that ncurses for the build platform is available.

Co-authored-by: sternenseemann <sternenseemann@systemli.org>
2024-09-08 23:50:05 +02:00
..
8.6.5-binary.nix haskell.compiler.ghc8102Binary: remove at 8.10.2 2024-01-25 15:20:35 +01:00
8.10.7-binary.nix haskell.compiler.ghc8107Binary: fix invalid code signatures on aarch64-darwin 2024-07-27 22:55:17 -04:00
8.10.7.nix haskell.compiler.ghc*: correctly account for ncurses in cross 2024-09-08 23:50:05 +02:00
9.0.2.nix haskell.compiler: port all make/native-bignum GHCs to common expr 2024-05-16 15:47:56 +02:00
9.2.4-binary.nix treewide: Remove the definite article from meta.description 2024-06-09 23:08:46 +02:00
9.2.5.nix haskell.compiler: port all make/native-bignum GHCs to common expr 2024-05-16 15:47:56 +02:00
9.2.6.nix haskell.compiler: port all make/native-bignum GHCs to common expr 2024-05-16 15:47:56 +02:00
9.2.7.nix haskell.compiler: port all make/native-bignum GHCs to common expr 2024-05-16 15:47:56 +02:00
9.2.8.nix haskell.compiler: port all make/native-bignum GHCs to common expr 2024-05-16 15:47:56 +02:00
9.4.5.nix haskell.compiler: port all make/native-bignum GHCs to common expr 2024-05-16 15:47:56 +02:00
9.4.6-bytestring-posix-source.patch
9.4.6.nix haskell.compiler: port all make/native-bignum GHCs to common expr 2024-05-16 15:47:56 +02:00
9.4.7.nix haskell.compiler: port all make/native-bignum GHCs to common expr 2024-05-16 15:47:56 +02:00
9.4.8.nix haskell.compiler.ghc948: fix expression file name 2024-06-13 00:00:53 +02:00
9.6.3-binary.nix Revert "haskell.compiler.{ghc98*,ghcHEAD}: bootstrap using source built 9.6" 2024-07-28 09:09:01 -04:00
9.6.3.nix
9.6.4.nix
9.6.5.nix haskell.compiler.ghc965: init at 9.6.5 2024-04-16 20:07:28 +02:00
9.6.6.nix haskell.compiler.ghc966: init at 9.6.6 2024-07-08 12:29:42 +02:00
9.8.1.nix
9.8.2.nix ghc: add new compiler version 9.8.2 2024-02-26 10:37:33 +01:00
9.10.1.nix haskell.compiler.ghc910: init at 9.10.1 2024-05-13 12:22:46 +02:00
Cabal-3.2-3.4-paths-fix-cycle-aarch64-darwin.patch
Cabal-3.12-paths-fix-cycle-aarch64-darwin.patch haskell.packages.ghc910: work around aarch64-darwin output cycles 2024-05-31 21:23:09 +02:00
Cabal-at-least-3.6-paths-fix-cycle-aarch64-darwin.patch
common-hadrian.nix haskell.compiler.ghc*: correctly account for ncurses in cross 2024-09-08 23:50:05 +02:00
common-make-native-bignum.nix haskell.compiler.ghc*: correctly account for ncurses in cross 2024-09-08 23:50:05 +02:00
docs-sphinx-7-ghc98.patch
docs-sphinx-7.patch
gcc-clang-wrapper.sh
head.nix haskell.compiler.ghcHEAD: 9.11.20240323 -> 9.11.20240410 2024-04-11 21:15:53 +02:00
respect-ar-path.patch