Skip to content

Commit

Permalink
gnome: add jxl thumbnails and wallpapers 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 aaae297 commit 0518f07
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion pkgs/desktops/gnome/core/gnome-control-center/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
, libgudev
, libadwaita
, libkrb5
, libjxl
, libpulseaudio
, libpwquality
, librsvg
Expand Down Expand Up @@ -173,10 +174,11 @@ stdenv.mkDerivation (finalAttrs: {
'';

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
];
Expand Down
4 changes: 3 additions & 1 deletion pkgs/desktops/gnome/core/gnome-shell/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
, unzip
, shared-mime-info
, libgweather
, libjxl
, librsvg
, webp-pixbuf-loader
, geoclue2
Expand Down Expand Up @@ -188,10 +189,11 @@ stdenv.mkDerivation (finalAttrs: {
'';

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
];
Expand Down
2 changes: 2 additions & 0 deletions pkgs/desktops/gnome/core/nautilus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
, shared-mime-info
, libnotify
, libexif
, libjxl
, libseccomp
, librsvg
, webp-pixbuf-loader
Expand Down Expand Up @@ -106,6 +107,7 @@ stdenv.mkDerivation (finalAttrs: {
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 : "${webp-pixbuf-loader}/share"
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
, xdg-desktop-portal
, wayland
, gnome
, libjxl
, librsvg
, webp-pixbuf-loader
}:
Expand Down Expand Up @@ -50,10 +51,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
];
Expand Down

0 comments on commit 0518f07

Please sign in to comment.