From 5a1b7ea73580cd1bc8658d6d8a56061b2c11e134 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Tue, 26 Jul 2022 21:11:49 +0200 Subject: [PATCH] haskell.packages.ghc941.terminfo: not a core pkg if cross compiling Reference #182873 and #182785. --- pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix index 2f3cc0dd5e43..6b78a528a05b 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix @@ -39,7 +39,8 @@ self: super: { stm = null; system-cxx-std-lib = 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;