zathura: add support for more image formats

This commit is contained in:
midchildan 2024-11-12 03:27:14 +09:00
parent 71091397cc
commit 49653722da
No known key found for this signature in database
GPG Key ID: D0B837BD81C42C9E

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 { };