summary refs log tree commit diff
path: root/pkgs/desktops/e17/e_dbus/setup-hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/desktops/e17/e_dbus/setup-hook.sh')
-rw-r--r--pkgs/desktops/e17/e_dbus/setup-hook.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/desktops/e17/e_dbus/setup-hook.sh b/pkgs/desktops/e17/e_dbus/setup-hook.sh
new file mode 100644
index 00000000000..d98f24b4c04
--- /dev/null
+++ b/pkgs/desktops/e17/e_dbus/setup-hook.sh
@@ -0,0 +1,8 @@
+addDbusIncludePath () {
+    if test -d "$1/include/dbus-1.0"
+    then
+        export NIX_CFLAGS_COMPILE="${NIX_CFLAGS_COMPILE} -I$1/include/dbus-1.0 -I $1/lib/dbus-1.0/include"
+    fi
+}
+
+envHooks=(${envHooks[@]} addDbusIncludePath)