zathura: add support for more image formats (#355248)

This commit is contained in:
Colin 2024-11-18 20:53:29 +00:00 committed by GitHub
commit 1a516ee240
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,9 @@
gtk,
girara,
gettext,
gnome,
libheif,
libjxl,
libxml2,
check,
sqlite,
@ -25,6 +28,7 @@
file,
librsvg,
gtk-mac-integration,
webp-pixbuf-loader,
}:
stdenv.mkDerivation (finalAttrs: {
@ -95,6 +99,16 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optional stdenv.hostPlatform.isLinux libseccomp
++ lib.optional stdenv.hostPlatform.isDarwin gtk-mac-integration;
# add support for more image formats
env.GDK_PIXBUF_MODULE_FILE = gnome._gdkPixbufCacheBuilder_DO_NOT_USE {
extraLoaders = [
libheif.out
libjxl
librsvg
webp-pixbuf-loader
];
};
doCheck = !stdenv.hostPlatform.isDarwin;
passthru.updateScript = gitUpdater { };