gtk3: move gtk-update-icon-cache to the main output

This is basically what aa0fa19373 was for gtk2 and Xfce.
Fixes #20874, though I haven't tested it directly.
This commit is contained in:
Vladimír Čunát 2017-01-22 22:55:39 +01:00
parent b1e9acfb18
commit df67f58fbf
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
2 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,7 @@ let
pkgs.desktop_file_utils pkgs.ibus
pkgs.shared_mime_info # for update-mime-database
glib # for gsettings
gtk3 # for gtk-update-icon-cache
gtk3.out # for gtk-update-icon-cache
glib_networking gvfs dconf gnome-backgrounds gnome_control_center
gnome-menus gnome_settings_daemon gnome_shell
gnome_themes_standard defaultIconTheme gnome-shell-extensions

View File

@ -63,6 +63,8 @@ stdenv.mkDerivation rec {
postInstall = optionalString (!stdenv.isDarwin) ''
substituteInPlace "$out/lib/gtk-3.0/3.0.0/printbackends/libprintbackend-cups.la" \
--replace '-L${gmp.dev}/lib' '-L${gmp.out}/lib'
# The updater is needed for nixos env and it's tiny.
moveToOutput bin/gtk-update-icon-cache "$out"
'';
meta = with stdenv.lib; {