NixOS/nixpkgs — pull request #1787 by larkery (2014-02-19 13:53:44+00:00)
Title: Fix obex-data-server so it builds

This is a slightly hacky fix to obex-data-server, which deals with the following issues:

1. openobex has its pkg-config file in lib64/pkgconfig; nix's pkgconfig setup only searches lib/pkgconfig. This could also be fixed in pkgs/development/tools/misc/pkgconfig/setup-hook.sh, so it would apply for all packages.
2. dbus_glib's pkg-config file has a Requirement onto dbus-1, which should be satisfied by the pkg-config in dbus-libs; the dbus-daemon package also has a pkg-config called dbus1, which will often end up in /run/current-system which is at the front of $PKG_CONFIG_PATH. This breaks the compile because the includes provided by dbus-daemon are not sufficient. This is fixed by wangling the dbus_libs pkgconfig onto the front of $PKG_CONFIG_PATH
3. the downloaded version of obex-data-server doesn't build against the suggested openobex anyway; the included patch fixes it so that it does. I yanked the patch from [here](http://www.linuxfromscratch.org/blfs/view/svn/general/obex-data-server.html)