From 8e8577806de026f1cb7d012ae0c95a3496f84925 Mon Sep 17 00:00:00 2001 From: Thekla Frie Date: Wed, 11 May 2022 23:18:05 +0200 Subject: [PATCH] gtk: fix missing immodules.cache this file used to be generated by the gtk build process, but this stopped being the case when upstream switched to a different post-install system with version 3.24.32. this is not an upstream bug since distributions are supposed to generate this file on their own anyways [1]. Fixes #172406. [1]: https://gitlab.gnome.org/GNOME/gtk/-/issues/4908 --- pkgs/development/libraries/gtk/3.x.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/gtk/3.x.nix b/pkgs/development/libraries/gtk/3.x.nix index 5e0dcf6ce03c..60fe817880bc 100644 --- a/pkgs/development/libraries/gtk/3.x.nix +++ b/pkgs/development/libraries/gtk/3.x.nix @@ -201,6 +201,8 @@ stdenv.mkDerivation rec { for f in $dev/bin/gtk-encode-symbolic-svg; do wrapProgram $f --prefix XDG_DATA_DIRS : "${shared-mime-info}/share" done + '' + lib.optionalString (stdenv.buildPlatform == stdenv.hostPlatform) '' + GTK_PATH="''${out:?}/lib/gtk-3.0/3.0.0/immodules/" ''${dev:?}/bin/gtk-query-immodules-3.0 > "''${out:?}/lib/gtk-3.0/3.0.0/immodules.cache" ''; # Wrap demos