summaryrefslogtreecommitdiff
path: root/hadrian/src/Settings/Packages.hs
diff options
context:
space:
mode:
Diffstat (limited to 'hadrian/src/Settings/Packages.hs')
-rw-r--r--hadrian/src/Settings/Packages.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/hadrian/src/Settings/Packages.hs b/hadrian/src/Settings/Packages.hs
index 13181c42c1..7dcc460474 100644
--- a/hadrian/src/Settings/Packages.hs
+++ b/hadrian/src/Settings/Packages.hs
@@ -22,6 +22,9 @@ packageArgs = do
-- are building. This is used to build cross-compilers
bootCross = (==) <$> ghcVersionStage Stage0 <*> ghcVersionStage Stage1
+ cursesIncludeDir <- getSetting CursesIncludeDir
+ cursesLibraryDir <- getSetting CursesLibDir
+
mconcat
--------------------------------- base ---------------------------------
[ package base ? mconcat
@@ -163,6 +166,10 @@ packageArgs = do
, package haskeline ?
builder (Cabal Flags) ? notM cross `cabalFlag` "terminfo"
+ -------------------------------- terminfo ------------------------------
+ , package terminfo ?
+ builder (Cabal Setup) ? cabalExtraDirs cursesIncludeDir cursesLibraryDir
+
-------------------------------- hsc2hs --------------------------------
, package hsc2hs ?
builder (Cabal Flags) ? arg "in-ghc-tree"