gnome.gnome-control-center: 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:48:14 +02:00
parent e674c5bd2a
commit b6804f78b7

View File

@ -33,6 +33,7 @@
, libpulseaudio
, libpwquality
, librsvg
, webp-pixbuf-loader
, libsecret
, libwacom
, libxml2
@ -139,6 +140,17 @@ stdenv.mkDerivation rec {
addToSearchPath "XDG_DATA_DIRS" "${polkit.out}/share"
'';
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+=(
--prefix XDG_DATA_DIRS : "${sound-theme-freedesktop}/share"