From 64c1d63d33f139d51e590214b4f27e0c6b8596f5 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 5 Nov 2023 17:24:43 +0800 Subject: [PATCH] Allow tui flag for windows as well --- ghcup.cabal | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ghcup.cabal b/ghcup.cabal index c8dd8cc..3c5c3ac 100644 --- a/ghcup.cabal +++ b/ghcup.cabal @@ -36,7 +36,7 @@ source-repository head flag tui description: - Build the brick powered tui (ghcup tui). This is disabled on windows. + Build the brick powered tui (ghcup tui). default: False manual: True @@ -236,7 +236,7 @@ library , unix ^>=2.7 , unix-bytestring ^>=0.3.7.3 - if (flag(tui) && !os(windows)) + if flag(tui) cpp-options: -DBRICK build-depends: vty ^>=6.0 @@ -284,7 +284,7 @@ library ghcup-optparse if flag(internal-downloader) cpp-options: -DINTERNAL_DOWNLOADER - if (flag(tui) && !os(windows)) + if flag(tui) cpp-options: -DBRICK if os(windows) @@ -320,13 +320,12 @@ executable ghcup if flag(internal-downloader) cpp-options: -DINTERNAL_DOWNLOADER - if (flag(tui) && !os(windows)) + if flag(tui) cpp-options: -DBRICK other-modules: BrickMain build-depends: , brick ^>=2.1 , transformers ^>=0.5 - , unix ^>=2.7 , vty ^>=6.0 if os(windows)