1 { lib, stdenv, fetchurl, SDL2, libpng, libjpeg, libtiff, libungif, libwebp, libXpm, zlib, Foundation }:
3 stdenv.mkDerivation rec {
8 url = "https://www.libsdl.org/projects/SDL_image/release/${pname}-${version}.tar.gz";
9 sha256 = "1l0864kas9cwpp2d32yxl81g98lx40dhbdp03dz7sbv84vhgdmdx";
12 buildInputs = [ SDL2 libpng libjpeg libtiff libungif libwebp libXpm zlib ]
13 ++ lib.optional stdenv.isDarwin Foundation;
16 configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
18 enableParallelBuilding = true;
21 description = "SDL image library";
22 homepage = "http://www.libsdl.org/projects/SDL_image/";
23 platforms = platforms.unix;
24 license = licenses.zlib;
25 maintainers = with maintainers; [ cpages ];