From 1f7e24bbcf3724f5433f019af4e5255f54805072 Mon Sep 17 00:00:00 2001 From: Dhananjay Balan Date: Wed, 8 Jan 2020 16:20:21 +0530 Subject: Enable FreeBSD features implicitly from build platform --- xmobar.cabal | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'xmobar.cabal') 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 -- cgit v1.2.3