Skip to content

Commit

Permalink
eog: add jxl support
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzsyyy authored and amaxine committed Apr 19, 2024
1 parent 0518f07 commit 45a89f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/desktops/gnome/core/eog/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
, exempi
, shared-mime-info
, wrapGAppsHook
, libjxl
, librsvg
, webp-pixbuf-loader
, libheif
Expand Down Expand Up @@ -81,10 +82,11 @@ stdenv.mkDerivation rec {
];

postInstall = ''
# Pull in WebP support for gnome-backgrounds.
# Pull in WebP and JXL support for gnome-backgrounds.
# In postInstall to run before gappsWrapperArgsHook.
export GDK_PIXBUF_MODULE_FILE="${gnome._gdkPixbufCacheBuilder_DO_NOT_USE {
extraLoaders = [
libjxl
librsvg
webp-pixbuf-loader
libheif.out
Expand All @@ -96,6 +98,7 @@ stdenv.mkDerivation rec {
gappsWrapperArgs+=(
# Thumbnailers
--prefix XDG_DATA_DIRS : "${gdk-pixbuf}/share"
--prefix XDG_DATA_DIRS : "${libjxl}/share"
--prefix XDG_DATA_DIRS : "${librsvg}/share"
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
)
Expand Down

0 comments on commit 45a89f4

Please sign in to comment.