summary refs log tree commit diff
path: root/pkgs/development/libraries/dbus-glib
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2016-05-05 05:27:17 +0300
committerTuomas Tynkkynen <tuomas@tuxera.com>2016-05-05 05:37:38 +0300
commit367b2aa1e422f2ee8a0860df52e98a5d788cef6a (patch)
treee177b340352d9e3eaff66ff7601e2ae3811d366d /pkgs/development/libraries/dbus-glib
parente58cd82e878f6541eacebde9ed4aad65ae8bfef7 (diff)
downloadnixlib-367b2aa1e422f2ee8a0860df52e98a5d788cef6a.tar
nixlib-367b2aa1e422f2ee8a0860df52e98a5d788cef6a.tar.gz
nixlib-367b2aa1e422f2ee8a0860df52e98a5d788cef6a.tar.bz2
nixlib-367b2aa1e422f2ee8a0860df52e98a5d788cef6a.tar.lz
nixlib-367b2aa1e422f2ee8a0860df52e98a5d788cef6a.tar.xz
nixlib-367b2aa1e422f2ee8a0860df52e98a5d788cef6a.tar.zst
nixlib-367b2aa1e422f2ee8a0860df52e98a5d788cef6a.zip
dbus-glibc: Set --exec-prefix to fix pkgconfig file
Without this notify-osd fails to find dbus-binding-tool, since the
pkgconfig file would contain e.g.:

````
prefix=/nix/store/hxsbjbjn7g1j1cf60n228yi9wnzrl4yk-dbus-glib-0.104
exec_prefix=${prefix}
````

... and notify-osd is using `exec_prefix` to locate the binaries.
Set it to $dev to match the location of installed binaries (we have
`outputBin = "dev";`).

Issue #15074.
Diffstat (limited to 'pkgs/development/libraries/dbus-glib')
-rw-r--r--pkgs/development/libraries/dbus-glib/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/dbus-glib/default.nix b/pkgs/development/libraries/dbus-glib/default.nix
index 59d227f0e868..d06a919cadac 100644
--- a/pkgs/development/libraries/dbus-glib/default.nix
+++ b/pkgs/development/libraries/dbus-glib/default.nix
@@ -17,6 +17,10 @@ stdenv.mkDerivation rec {
 
   propagatedBuildInputs = [ dbus glib ];
 
+  preConfigure = ''
+    configureFlagsArray+=("--exec-prefix=$dev")
+  '';
+
   doCheck = true;
 
   passthru = { inherit dbus glib; };