diff options
author | Róman Joost <rjoost@redhat.com> | 2017-08-24 14:32:32 +1000 |
---|---|---|
committer | Róman Joost <rjoost@redhat.com> | 2017-08-24 17:08:13 +1000 |
commit | a7bc612666062b5c48efae74054a453334727e91 (patch) | |
tree | de92595ae2380afc80928ec72aa2d7cb5b9b7c9b /xmobar.cabal | |
parent | f0c265b3b4359e866673954dbcc5a586c7ae51dd (diff) | |
download | xmobar-a7bc612666062b5c48efae74054a453334727e91.tar.gz xmobar-a7bc612666062b5c48efae74054a453334727e91.tar.bz2 |
Fix UVMeter due to changed URL and BOM
The URL which exports the real time UV data has changed to an HTTPS
address. Since the HTTP package does not support HTTPS URLs, use
http-conduit to retrieve the XML document.
Unfortunately, the XML documents XML declaration precedes a byte order
mark which the previous XML parser was unable to handle. We're simply
ignoring the BOM in order to get to the UV values.
Diffstat (limited to 'xmobar.cabal')
-rw-r--r-- | xmobar.cabal | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmobar.cabal b/xmobar.cabal index d03bdb3..9fa4cf2 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -201,6 +201,7 @@ executable xmobar build-depends: http-conduit, http-types cpp-options: -DHTTP_CONDUIT - if flag(with_uvmeter) + if flag(with_uvmeter) && flag(with_conduit) other-modules: Plugins.Monitors.UVMeter + build-depends: http-conduit, http-types cpp-options: -DUVMETER |