about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2022-07-25 23:42:29 +0200
committersternenseemann <sternenseemann@systemli.org>2022-07-25 23:42:29 +0200
commitf39aee2d8b8cf527a4a13f90bd57c8ceb345f3d7 (patch)
tree75e50f45534ba6ad81b425f1fba220d28b164d10 /pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
parent7d66e14b70c64dc3b842efbda4fdf5eee0c7dc95 (diff)
downloadnixlib-f39aee2d8b8cf527a4a13f90bd57c8ceb345f3d7.tar
nixlib-f39aee2d8b8cf527a4a13f90bd57c8ceb345f3d7.tar.gz
nixlib-f39aee2d8b8cf527a4a13f90bd57c8ceb345f3d7.tar.bz2
nixlib-f39aee2d8b8cf527a4a13f90bd57c8ceb345f3d7.tar.lz
nixlib-f39aee2d8b8cf527a4a13f90bd57c8ceb345f3d7.tar.xz
nixlib-f39aee2d8b8cf527a4a13f90bd57c8ceb345f3d7.tar.zst
nixlib-f39aee2d8b8cf527a4a13f90bd57c8ceb345f3d7.zip
haskellPackages.terminfo: not a core pkg if cross compiling
GHC's cross build flavours disable the terminfo package, so it will
never be included if we are cross-compiling – setting it to null thus
breaks all builds depending on the package.

To fix this problem, we use the versioned attribute generated by
hackage2nix, just like we do for xhtml.

Closes #182785.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
index a6fad258cf85..8174307b7e6c 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
@@ -37,7 +37,8 @@ self: super: {
   rts = null;
   stm = null;
   template-haskell = null;
-  terminfo = null;
+  # GHC only builds terminfo if it is a native compiler
+  terminfo = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then null else self.terminfo_0_4_1_5;
   text = null;
   time = null;
   transformers = null;