gnome-terminal: enable GNOME Shell search provider (for 3.18)

[This is a re-application of the patch that was originally written for
GNOME 3.16. It was lost during the transition to GNOME 3.18.]

Silly ./configure, it looks for dbus file from gnome-shell in the
installation tree of the package it is configuring. Fix by copying the
needed file from gnome-shell before ./configure is run.

This change makes gnome-shell a build time dependency (not runtime).

+8 -1
+8 -1
pkgs/desktops/gnome-3/3.18/core/gnome-terminal/default.nix
··· 11 11 nativeBuildInputs = [ pkgconfig intltool gnome_doc_utils which libuuid libxml2 12 12 desktop_file_utils wrapGAppsHook ]; 13 13 14 + # Silly ./configure, it looks for dbus file from gnome-shell in the 15 + # installation tree of the package it is configuring. 16 + preConfigure = '' 17 + mkdir -p "$out/share/dbus-1/interfaces" 18 + cp "${gnome3.gnome_shell}/share/dbus-1/interfaces/org.gnome.ShellSearchProvider2.xml" "$out/share/dbus-1/interfaces" 19 + ''; 20 + 14 21 # FIXME: enable for gnome3 15 - configureFlags = [ "--disable-search-provider" "--disable-migration" ]; 22 + configureFlags = [ "--disable-migration" ]; 16 23 17 24 meta = with stdenv.lib; { 18 25 description = "The GNOME Terminal Emulator";