Skip to content

Commit

Permalink
Include terminfo in musl GHC
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Nov 30, 2022
1 parent 6a66356 commit 60b3457
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 1 deletion.
2 changes: 2 additions & 0 deletions compiler/ghc/default.nix
Expand Up @@ -597,6 +597,8 @@ stdenv.mkDerivation (rec {
} // lib.optionalAttrs useHadrian {
buildPhase = ''
${hadrian}/bin/hadrian ${hadrianArgs}
'' + lib.optionalString targetPlatform.isMusl ''
${hadrian}/bin/hadrian ${hadrianArgs} stage1:lib:terminfo
'';

# Hadrian's installation only works for native compilers, and is broken for cross compilers.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion overlays/ghc-packages.nix
Expand Up @@ -93,7 +93,7 @@ let
then "windows"
else if final.stdenv.hostPlatform.isGhcjs
then "ghcjs"
else if final.haskell-nix.haskellLib.isCrossHost || (final.stdenv.hostPlatform.isMusl && builtins.compareVersions ghc.version "9.4.1" >= 0)
else if final.haskell-nix.haskellLib.isCrossHost
then "cross"
else "default";

Expand Down

0 comments on commit 60b3457

Please sign in to comment.