From 49653722da965ac37239b4cccfdc9bf8aaf7bc92 Mon Sep 17 00:00:00 2001 From: midchildan Date: Tue, 12 Nov 2024 03:27:14 +0900 Subject: [PATCH] zathura: add support for more image formats --- pkgs/applications/misc/zathura/core/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/applications/misc/zathura/core/default.nix b/pkgs/applications/misc/zathura/core/default.nix index 0ed21d76888e..7aa63a9b6dde 100644 --- a/pkgs/applications/misc/zathura/core/default.nix +++ b/pkgs/applications/misc/zathura/core/default.nix @@ -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 { };