summaryrefslogtreecommitdiffhomepage
path: root/xmobar.cabal
diff options
context:
space:
mode:
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