diff options
author | Dhananjay Balan <mail@dbalan.in> | 2020-01-08 16:20:21 +0530 |
---|---|---|
committer | Dhananjay Balan <mail@dbalan.in> | 2020-01-08 16:23:06 +0530 |
commit | 1f7e24bbcf3724f5433f019af4e5255f54805072 (patch) | |
tree | 826aef6f03e7c63962fb7b209fb39b208d050bf1 | |
parent | 32cf7ca740c891804de7b105d9b048772e2fc226 (diff) | |
download | xmobar-1f7e24bbcf3724f5433f019af4e5255f54805072.tar.gz xmobar-1f7e24bbcf3724f5433f019af4e5255f54805072.tar.bz2 |
Enable FreeBSD features implicitly from build platform
-rw-r--r-- | xmobar.cabal | 8 |
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 |