diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2022-10-21 09:46:13 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2022-10-21 10:27:14 +0200 |
commit | e674c5bd2a85e3765edf41b8f381137d9d2d45be (patch) | |
tree | 8ab82b314399dd2cc848b38fd23f370261ff7580 /pkgs/desktops/gnome/core/gnome-shell | |
parent | 7140875a66167240d502ff2205fd67892417fda8 (diff) |
gnome.gnome-shell: Support WebP files
A hack until gdk-pixbuf learns to support multiple cache files.
Diffstat (limited to 'pkgs/desktops/gnome/core/gnome-shell')
-rw-r--r-- | pkgs/desktops/gnome/core/gnome-shell/default.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/desktops/gnome/core/gnome-shell/default.nix b/pkgs/desktops/gnome/core/gnome-shell/default.nix index ccc34ecca019e..050a88dd0b3e1 100644 --- a/pkgs/desktops/gnome/core/gnome-shell/default.nix +++ b/pkgs/desktops/gnome/core/gnome-shell/default.nix @@ -20,6 +20,7 @@ , shared-mime-info , libgweather , librsvg +, webp-pixbuf-loader , geoclue2 , perl , docbook_xml_dtd_45 @@ -187,6 +188,17 @@ stdenv.mkDerivation rec { rm data/theme/gnome-shell.css ''; + 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+=( # Until glib’s xdgmime is patched |