1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

gnome3_22.gnome-terminal: substitute gnome-shell dbus file path

instead of copying the file. this avoids name conflicts after the build.
Alternatively we could remove the file after building.
This commit is contained in:
Alexander Ried 2016-10-01 11:19:20 +02:00
parent e8ade4ff78
commit 76fa7d1c39

View file

@ -13,9 +13,9 @@ stdenv.mkDerivation rec {
# Silly ./configure, it looks for dbus file from gnome-shell in the
# installation tree of the package it is configuring.
preConfigure = ''
mkdir -p "$out/share/dbus-1/interfaces"
cp "${gnome3.gnome_shell}/share/dbus-1/interfaces/org.gnome.ShellSearchProvider2.xml" "$out/share/dbus-1/interfaces"
postPatch = ''
substituteInPlace configure --replace '$(eval echo $(eval echo $(eval echo ''${dbusinterfacedir})))/org.gnome.ShellSearchProvider2.xml' "${gnome3.gnome_shell}/share/dbus-1/interfaces/org.gnome.ShellSearchProvider2.xml"
substituteInPlace src/Makefile.in --replace '$(dbusinterfacedir)/org.gnome.ShellSearchProvider2.xml' "${gnome3.gnome_shell}/share/dbus-1/interfaces/org.gnome.ShellSearchProvider2.xml"
'';
# FIXME: enable for gnome3