gnome.eog: Support WebP files

A hack until gdk-pixbuf learns to support multiple cache files.
This commit is contained in:
Jan Tojnar 2022-10-21 09:51:55 +02:00
parent b6804f78b7
commit a8e19491dd

View file

@ -22,6 +22,7 @@
, shared-mime-info
, wrapGAppsHook
, librsvg
, webp-pixbuf-loader
, libexif
, gobject-introspection
, gi-docgen
@ -78,6 +79,17 @@ stdenv.mkDerivation rec {
"-Dgtk_doc=true"
];
postInstall = ''
# Pull in WebP support for gnome-backgrounds.
# In postInstall to run before gappsWrapperArgsHook.
export GDK_PIXBUF_MODULE_FILE="${gnome._gdkPixbufCacheBuilder_DO_NOT_USE {
extraLoaders = [
librsvg
webp-pixbuf-loader
];
}}"
'';
preFixup = ''
gappsWrapperArgs+=(
# Thumbnailers