diff --git a/pkgs/desktops/gnome/core/eog/default.nix b/pkgs/desktops/gnome/core/eog/default.nix index ccb4d439240f..e0a943a8e1ca 100644 --- a/pkgs/desktops/gnome/core/eog/default.nix +++ b/pkgs/desktops/gnome/core/eog/default.nix @@ -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