Skip to content

Commit

Permalink
zathura: add support for more image formats (#355248)
Browse files Browse the repository at this point in the history
  • Loading branch information
uninsane authored Nov 18, 2024
2 parents 936d6a0 + 4965372 commit 1a516ee
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkgs/applications/misc/zathura/core/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
gtk,
girara,
gettext,
gnome,
libheif,
libjxl,
libxml2,
check,
sqlite,
Expand All @@ -25,6 +28,7 @@
file,
librsvg,
gtk-mac-integration,
webp-pixbuf-loader,
}:

stdenv.mkDerivation (finalAttrs: {
Expand Down Expand Up @@ -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 { };
Expand Down

0 comments on commit 1a516ee

Please sign in to comment.