sdl3-image: enable jxl

This commit is contained in:
Evy Garden
2026-01-01 14:01:19 +01:00
parent b51c9c4624
commit 014f8bf1d4

View File

@@ -10,6 +10,7 @@
validatePkgConfig,
libpng,
libjpeg,
libjxl,
nix-update-script,
# Boolean flags
enableTests ? true,
@@ -47,6 +48,7 @@ stdenv.mkDerivation (finalAttrs: {
libtiff
libwebp
libavif
libjxl
]
++ (lib.optionals (!enableSTB) [
libpng
@@ -64,6 +66,8 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeBool "SDLIMAGE_BACKEND_IMAGEIO" enableImageIO)
# enable tests
(lib.cmakeBool "SDLIMAGE_TESTS" enableTests)
# enable jxl
(lib.cmakeBool "SDLIMAGE_JXL" true)
];
passthru.updateScript = nix-update-script {