summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDhananjay Balan <mail@dbalan.in>2020-01-08 16:20:21 +0530
committerDhananjay Balan <mail@dbalan.in>2020-01-08 16:23:06 +0530
commit1f7e24bbcf3724f5433f019af4e5255f54805072 (patch)
tree826aef6f03e7c63962fb7b209fb39b208d050bf1
parent32cf7ca740c891804de7b105d9b048772e2fc226 (diff)
downloadxmobar-1f7e24bbcf3724f5433f019af4e5255f54805072.tar.gz
xmobar-1f7e24bbcf3724f5433f019af4e5255f54805072.tar.bz2
Enable FreeBSD features implicitly from build platform
-rw-r--r--xmobar.cabal8
1 files changed, 3 insertions, 5 deletions
diff --git a/xmobar.cabal b/xmobar.cabal
index dabead7..1eff7ba 100644
--- a/xmobar.cabal
+++ b/xmobar.cabal
@@ -87,10 +87,6 @@ flag with_weather
description: Enable weather plugin.
default: True
-flag with_freebsd
- description: Enable FreeBSD support.
- default: False
-
library
hs-source-dirs: src
@@ -261,9 +257,11 @@ library
build-depends: http-conduit, http-types
cpp-options: -DUVMETER
- if flag(with_freebsd)
+ if os(freebsd)
+ -- enables freebsd specific code
build-depends: bsd-sysctl
cpp-options: -DFREEBSD
+
executable xmobar
hs-source-dirs: app
main-is: Main.hs