eom: Support avif, heif, jxl, webp

See Nixpkgs issue 532493.

(cherry picked from commit 476dd31c10)
This commit is contained in:
Bobby Rong 2026-06-19 16:47:45 +08:00 committed by github-actions[bot]
commit 75f5397fcf

View file

@ -23,6 +23,11 @@
wrapGAppsHook3,
yelp-tools,
gitUpdater,
gnome,
libavif,
libheif,
libjxl,
webp-pixbuf-loader,
}:
stdenv.mkDerivation (finalAttrs: {
@ -64,6 +69,21 @@ stdenv.mkDerivation (finalAttrs: {
enableParallelBuilding = true;
postInstall = ''
# In postInstall to run before gappsWrapperArgsHook.
export GDK_PIXBUF_MODULE_FILE="${
gnome._gdkPixbufCacheBuilder_DO_NOT_USE {
extraLoaders = [
libavif
libheif.lib
libjxl
librsvg
webp-pixbuf-loader
];
}
}"
'';
passthru.updateScript = gitUpdater {
odd-unstable = true;
rev-prefix = "v";