summaryrefslogtreecommitdiffhomepage
path: root/xmobar.cabal
diff options
context:
space:
mode:
authorDhananjay Balan <mail@dbalan.in>2020-01-04 18:36:39 +0530
committerDhananjay Balan <mail@dbalan.in>2020-01-06 09:30:55 +0530
commit32cf7ca740c891804de7b105d9b048772e2fc226 (patch)
tree41f641050d798e73ebee509d5acc998248ad28c8 /xmobar.cabal
parentbd22f1a2744ba331586f9161f833e7e3b7503b50 (diff)
downloadxmobar-32cf7ca740c891804de7b105d9b048772e2fc226.tar.gz
xmobar-32cf7ca740c891804de7b105d9b048772e2fc226.tar.bz2
Support for freebsd battery status:
Exposed via -f with_freebsd flag, uses sysctl to query battery status.
Diffstat (limited to 'xmobar.cabal')
-rw-r--r--xmobar.cabal7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmobar.cabal b/xmobar.cabal
index 7a2608a..dabead7 100644
--- a/xmobar.cabal
+++ b/xmobar.cabal
@@ -87,6 +87,10 @@ flag with_weather
description: Enable weather plugin.
default: True
+flag with_freebsd
+ description: Enable FreeBSD support.
+ default: False
+
library
hs-source-dirs: src
@@ -257,6 +261,9 @@ library
build-depends: http-conduit, http-types
cpp-options: -DUVMETER
+ if flag(with_freebsd)
+ build-depends: bsd-sysctl
+ cpp-options: -DFREEBSD
executable xmobar
hs-source-dirs: app
main-is: Main.hs