sdl3-image: 3.2.4 -> 3.2.6 (#475844)

This commit is contained in:
Grimmauld
2026-01-01 15:30:39 +00:00
committed by GitHub

View File

@@ -10,6 +10,7 @@
validatePkgConfig,
libpng,
libjpeg,
libjxl,
nix-update-script,
# Boolean flags
enableTests ? true,
@@ -19,7 +20,7 @@
stdenv.mkDerivation (finalAttrs: {
pname = "sdl3-image";
version = "3.2.4";
version = "3.2.6";
outputs = [
"lib"
@@ -31,7 +32,7 @@ stdenv.mkDerivation (finalAttrs: {
owner = "libsdl-org";
repo = "SDL_image";
tag = "release-${finalAttrs.version}";
hash = "sha256-/orQ+YfH0CV8DOqXFMF9fOT4YaVpC1t55xM3j520Png=";
hash = "sha256-CnUCqFq9ZaM/WQcmaCpQdjtjR9l5ymzgeqEJx7ZW/s4=";
};
strictDeps = true;
@@ -46,8 +47,9 @@ stdenv.mkDerivation (finalAttrs: {
sdl3
libtiff
libwebp
libavif
libjxl
]
++ (lib.optional (!stdenv.hostPlatform.isDarwin) libavif)
++ (lib.optionals (!enableSTB) [
libpng
libjpeg
@@ -64,6 +66,10 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeBool "SDLIMAGE_BACKEND_IMAGEIO" enableImageIO)
# enable tests
(lib.cmakeBool "SDLIMAGE_TESTS" enableTests)
# enable jxl
(lib.cmakeBool "SDLIMAGE_JXL" true)
# disable avif on darwin (see https://github.com/NixOS/nixpkgs/issues/400910)
(lib.cmakeBool "SDLIMAGE_AVIF" (!stdenv.hostPlatform.isDarwin))
];
passthru.updateScript = nix-update-script {