Merge pull request #172616 from theknyaa/fix-gtk-immodules-cache

gtk: fix missing immodules.cache
This commit is contained in:
Jan Tojnar 2022-05-14 03:20:54 +02:00 committed by GitHub
commit 5729205c6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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