summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--xmobar.cabal21
1 files changed, 14 insertions, 7 deletions
diff --git a/xmobar.cabal b/xmobar.cabal
index 8b24b73..4840df9 100644
--- a/xmobar.cabal
+++ b/xmobar.cabal
@@ -12,11 +12,18 @@ license: BSD3
license-file: LICENSE
author: Andrea Rossato
maintainer: andrea.rossato@unibz.it
-build-depends: base>=2.0, X11>=1.3.0, mtl>=1.0, unix>=1.0, parsec>=2.0, filepath>=1.0, stm>=2.0
+cabal-version: >= 1.2
+flag small_base
+ description: Choose the new smaller, split-up base package.
+
+executable xmobar
+ main-is: Main.hs
+ other-Modules: Xmobar, Config, Parsers, Commands, Runnable, Plugins
+ ghc-options: -funbox-strict-fields -O2 -fasm -Wall -optl-Wl,-s -threaded
+ ghc-prof-options: -prof -auto-all
+ if flag(small_base)
+ build-depends: base >= 3, containers, process, old-time, old-locale, bytestring
+ else
+ build-depends: base < 3
+ build-depends: X11>=1.3.0, mtl, unix, parsec, filepath, stm
-executable: xmobar
-main-is: Main.hs
-Hs-Source-Dirs: ./
-Other-Modules: Xmobar, Config, Parsers, Commands, Runnable, Plugins
-ghc-options: -funbox-strict-fields -O2 -fasm -Wall -optl-Wl,-s -threaded
-ghc-prof-options: -prof -auto-all