diff options
author | sternenseemann <sternenseemann@systemli.org> | 2022-07-25 23:42:29 +0200 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2022-07-25 23:42:29 +0200 |
commit | f39aee2d8b8cf527a4a13f90bd57c8ceb345f3d7 (patch) | |
tree | 75e50f45534ba6ad81b425f1fba220d28b164d10 /pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix | |
parent | 7d66e14b70c64dc3b842efbda4fdf5eee0c7dc95 (diff) | |
download | nixlib-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-9.0.x.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix index 127f3225c297..a5914433a448 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.0.x.nix @@ -39,7 +39,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; |