$OpenBSD: patch-xmobar_cabal,v 1.17 2016/08/10 08:50:24 dcoppa Exp $
--- xmobar.cabal.orig	Mon Aug  8 23:40:59 2016
+++ xmobar.cabal	Wed Aug 10 10:22:49 2016
@@ -103,9 +103,10 @@ executable xmobar
       Plugins.Monitors.ThermalZone, Plugins.Monitors.Top,
       Plugins.Monitors.Uptime, Plugins.Monitors.Weather,
       Plugins.Monitors.Bright, Plugins.Monitors.CatInt,
-      Plugins.Monitors.UVMeter
+      Plugins.Monitors.UVMeter, Plugins.Monitors.Batt.Binding
 
     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:
@@ -154,6 +155,8 @@ executable xmobar
        build-depends: hinotify == 0.3.*
        other-modules: Plugins.Mail, Plugins.MBox
        cpp-options: -DINOTIFY
+       ld-options: -Wl,-rpath=${LOCALBASE}/lib/inotify
+       extra-libraries: inotify
 
     if flag(with_iwlib) || flag(all_extensions)
        extra-libraries: iw
