at 18.03-beta 23 lines 696 B view raw
1{ stdenv, fetchurl, SDL2, libpng, libjpeg, libtiff, libungif, libXpm, zlib, Foundation }: 2 3stdenv.mkDerivation rec { 4 name = "SDL2_image-${version}"; 5 version = "2.0.2"; 6 7 src = fetchurl { 8 url = "http://www.libsdl.org/projects/SDL_image/release/${name}.tar.gz"; 9 sha256 = "1s3ciydixrgv34vlf45ak5syq5nlfaqf19wf162lbz4ixxd0gpvj"; 10 }; 11 12 buildInputs = [ SDL2 libpng libjpeg libtiff libungif libXpm zlib ] 13 ++ stdenv.lib.optional stdenv.isDarwin Foundation; 14 15 enableParallelBuilding = true; 16 17 meta = with stdenv.lib; { 18 description = "SDL image library"; 19 homepage = http://www.libsdl.org/projects/SDL_image/; 20 platforms = platforms.unix; 21 license = licenses.zlib; 22 }; 23}