diff options
author | Dragos Boca <dragos.boca@oracle.com> | 2015-08-25 13:37:23 +0300 |
---|---|---|
committer | Dragos Boca <dragos.boca@oracle.com> | 2015-08-25 13:37:23 +0300 |
commit | d0e391fb165ab23bb08dc02871747e0131c1e723 (patch) | |
tree | 3fd2ea797a518cd3f0aa5f3c218fb11977c35da4 /xmobar.cabal | |
parent | 7000477c014ed6d40507f4472f098736b270840b (diff) | |
download | xmobar-d0e391fb165ab23bb08dc02871747e0131c1e723.tar.gz xmobar-d0e391fb165ab23bb08dc02871747e0131c1e723.tar.bz2 |
define flag 'with_conduit'
Diffstat (limited to 'xmobar.cabal')
-rw-r--r-- | xmobar.cabal | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/xmobar.cabal b/xmobar.cabal index 9be6452..f8e8057 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -78,6 +78,10 @@ flag with_uvmeter description: UVMeter only useful to australians. default: False +flag with_conduit + description: Use http-conduits for getting weather data + default: False + executable xmobar hs-source-dirs: src main-is: Main.hs @@ -105,24 +109,27 @@ executable xmobar extra-libraries: Xrandr Xrender build-depends: - base == 4.*, - containers, - regex-compat, - process, - old-locale, - bytestring, - directory, - unix, - time, - filepath, - transformers, - http-conduit, - http-types, - X11 >= 1.6.1, - mtl >= 2.1 && < 2.3, - parsec == 3.1.*, - HTTP >= 4000.2.4, - stm >= 2.3 && < 2.5 + base == 4.*, + containers, + regex-compat, + process, + old-locale, + bytestring, + directory, + unix, + time, + filepath, + transformers, + X11 >= 1.6.1, + mtl >= 2.1 && < 2.3, + parsec == 3.1.*, + HTTP >= 4000.2.4, + stm >= 2.3 && < 2.5 + + if flag(with_conduit) + -- use http-conduit instead of simple-http + build-depends: http-conduit, http-types + cpp-options: -DHTTP_CONDUIT if flag(with_threaded) -- -threaded is a workaround for 100% CPU busy loop |