summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGleb Popov <6yearold@gmail.com>2022-05-12 17:38:18 +0300
committerGleb Popov <6yearold@gmail.com>2022-05-12 17:38:18 +0300
commitccffb16e0f254db3c07033fafed0d397f005b902 (patch)
tree99c096f4c797a65b0189d7b89a0996489163ed92
parentdbe9cba77dd23910103aeb667ef07377ceec9464 (diff)
downloadxmobar-ccffb16e0f254db3c07033fafed0d397f005b902.tar.gz
xmobar-ccffb16e0f254db3c07033fafed0d397f005b902.tar.bz2
Remove with_utf8 option and enable its features by default.
-rw-r--r--xmobar.cabal13
1 files changed, 4 insertions, 9 deletions
diff --git a/xmobar.cabal b/xmobar.cabal
index a19e701..e8520f1 100644
--- a/xmobar.cabal
+++ b/xmobar.cabal
@@ -32,10 +32,6 @@ flag with_xft
description: Use Xft to render text. UTF-8 support included.
default: False
-flag with_utf8
- description: With UTF-8 support.
- default: True
-
flag with_inotify
description: inotify support (modern Linux only). Required for the Mail and MBox plugins.
default: False
@@ -187,6 +183,8 @@ library
ghc-options: -funbox-strict-fields -Wall -fno-warn-unused-do-bind
+ cpp-options: -DUTF8
+
build-depends:
X11 >= 1.6.1,
aeson >= 1.4.7.1,
@@ -206,7 +204,8 @@ library
stm >= 2.3 && < 2.6,
time,
transformers,
- unix
+ unix,
+ utf8-string >= 0.3 && < 1.1
if impl(ghc < 8.0.2)
-- Disable building with GHC before 8.0.2.
@@ -229,10 +228,6 @@ library
other-modules: Xmobar.X11.MinXft
cpp-options: -DXFT
- if flag(with_utf8) || flag(all_extensions)
- build-depends: utf8-string >= 0.3 && < 1.1
- cpp-options: -DUTF8
-
if flag(with_inotify) || flag(all_extensions)
build-depends: hinotify >= 0.3 && < 0.5
other-modules: Xmobar.Plugins.Mail, Xmobar.Plugins.MBox