From cd9901b04e567ddc48bce63e9f4ef3f2fed9d6a6 Mon Sep 17 00:00:00 2001 From: Evy Garden Date: Thu, 22 Jan 2026 10:53:22 +0100 Subject: [PATCH] sdl3-image: 3.2.6 -> 3.4.0, fix compilation with stb --- pkgs/by-name/sd/sdl3-image/package.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/sd/sdl3-image/package.nix b/pkgs/by-name/sd/sdl3-image/package.nix index c765a02c6b9fb..7528527e0ae2e 100644 --- a/pkgs/by-name/sd/sdl3-image/package.nix +++ b/pkgs/by-name/sd/sdl3-image/package.nix @@ -20,7 +20,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "sdl3-image"; - version = "3.2.6"; + version = "3.4.0"; outputs = [ "lib" @@ -32,7 +32,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "libsdl-org"; repo = "SDL_image"; tag = "release-${finalAttrs.version}"; - hash = "sha256-CnUCqFq9ZaM/WQcmaCpQdjtjR9l5ymzgeqEJx7ZW/s4="; + hash = "sha256-XRPHDcJ49sZa7y8TCWfS2gPOhpGyUnMMXVqvjV9f8E0="; }; strictDeps = true; @@ -46,21 +46,19 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ sdl3 libtiff + libpng libwebp libjxl ] ++ (lib.optional (!stdenv.hostPlatform.isDarwin) libavif) - ++ (lib.optionals (!enableSTB) [ - libpng - libjpeg - ]); + ++ (lib.optional (!enableSTB) libjpeg); cmakeFlags = [ # fail when a dependency could not be found (lib.cmakeBool "SDLIMAGE_STRICT" true) # disable shared dependencies as they're opened at runtime using SDL_LoadObject otherwise. (lib.cmakeBool "SDLIMAGE_DEPS_SHARED" false) - # disable stbi + # enable stb conditionally (lib.cmakeBool "SDLIMAGE_BACKEND_STB" enableSTB) # enable imageio backend (lib.cmakeBool "SDLIMAGE_BACKEND_IMAGEIO" enableImageIO)