swaybg: add webp support (#424711)

This commit is contained in:
Aleksana 2025-07-15 22:28:21 +08:00 committed by GitHub
commit 71bf216278
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,6 +10,8 @@
wayland-protocols, wayland-protocols,
cairo, cairo,
gdk-pixbuf, gdk-pixbuf,
gnome,
webp-pixbuf-loader,
wayland-scanner, wayland-scanner,
wrapGAppsNoGuiHook, wrapGAppsNoGuiHook,
librsvg, librsvg,
@ -50,6 +52,18 @@ stdenv.mkDerivation rec {
"-Dman-pages=enabled" "-Dman-pages=enabled"
]; ];
# add support for webp
postInstall = ''
export GDK_PIXBUF_MODULE_FILE="${
gnome._gdkPixbufCacheBuilder_DO_NOT_USE {
extraLoaders = [
librsvg
webp-pixbuf-loader
];
}
}"
'';
meta = with lib; { meta = with lib; {
description = "Wallpaper tool for Wayland compositors"; description = "Wallpaper tool for Wayland compositors";
inherit (src.meta) homepage; inherit (src.meta) homepage;