Skip to content

Commit

Permalink
gnome.eog: Support WebP files
Browse files Browse the repository at this point in the history
A hack until gdk-pixbuf learns to support multiple cache files.
  • Loading branch information
jtojnar committed Oct 21, 2022
1 parent b6804f7 commit a8e1949
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkgs/desktops/gnome/core/eog/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
, shared-mime-info
, wrapGAppsHook
, librsvg
, webp-pixbuf-loader
, libexif
, gobject-introspection
, gi-docgen
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a8e1949

Please sign in to comment.