$OpenBSD: patch-xmobar_cabal,v 1.16 2016/07/05 10:08:07 dcoppa Exp $
--- xmobar.cabal.orig	Tue Apr 14 19:08:19 2015
+++ xmobar.cabal	Tue Jul  5 11:49:38 2016
@@ -93,10 +93,12 @@ executable xmobar
       Plugins.Monitors.Swap, Plugins.Monitors.Thermal,
       Plugins.Monitors.ThermalZone, Plugins.Monitors.Top,
       Plugins.Monitors.Uptime, Plugins.Monitors.Weather,
-      Plugins.Monitors.Bright, Plugins.Monitors.CatInt
+      Plugins.Monitors.Bright, Plugins.Monitors.CatInt,
+      Plugins.Monitors.Batt.Binding
 
     ghc-prof-options:   -prof -auto-all
     ghc-options: -funbox-strict-fields -Wall -fno-warn-unused-do-bind
+    c-sources: src/Plugins/Monitors/Batt/apm.c
     extra-libraries: Xrandr Xrender
 
     build-depends:
@@ -140,6 +142,7 @@ executable xmobar
        build-depends: hinotify == 0.3.*
        other-modules: Plugins.Mail, Plugins.MBox
        cpp-options: -DINOTIFY
+       ld-options: -linotify -Wl,-rpath=${LOCALBASE}/lib/inotify
 
     if flag(with_iwlib) || flag(all_extensions)
        extra-libraries: iw
