1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

dbus.{tools,daemon}: don't provide a wrong dbus-1.pc

Fixes #6086.
I think this will rebuild most of KDE and GNOME due to strigi and upower.
This commit is contained in:
Vladimír Čunát 2015-02-01 11:38:15 +01:00
parent 7d6cd236c3
commit 8ec4c682a7

View file

@ -91,6 +91,13 @@ let
stdenv.lib.optionalString (!stdenv.isDarwin) "-Wl,--as-needed "
+ "-ldbus-1";
# don't provide another dbus-1.pc (with incorrect include and link dirs),
# also remove useless empty dirs
postInstall = ''
rm "$out"/lib/pkgconfig/dbus-1.pc
rmdir --parents --ignore-fail-on-non-empty "$out"/{lib/pkgconfig,share/dbus-1/*}
'';
meta.platforms = with stdenv.lib.platforms; allBut darwin;
};
@ -101,3 +108,4 @@ let
};
};
in attrs.libs // attrs