2017-10-24 04:25:16 -07:00
|
|
|
{ stdenv, fetchurl, fetchpatch, SDL, libpng, libjpeg, libtiff, libungif, libXpm }:
|
2009-03-03 05:27:40 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "SDL_image";
|
2016-08-21 20:24:00 -07:00
|
|
|
version = "1.2.12";
|
2008-02-06 13:17:42 -08:00
|
|
|
|
2012-12-06 03:02:17 -08:00
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "https://www.libsdl.org/projects/SDL_image/release/${pname}-${version}.tar.gz";
|
2012-12-06 03:02:17 -08:00
|
|
|
sha256 = "16an9slbb8ci7d89wakkmyfvp7c0cval8xw4hkg0842nhhlp540b";
|
2008-02-06 13:17:42 -08:00
|
|
|
};
|
2007-08-09 10:33:18 -07:00
|
|
|
|
2017-10-24 04:25:16 -07:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2017-2887";
|
|
|
|
url = "https://hg.libsdl.org/SDL_image/raw-diff/318484db0705/IMG_xcf.c";
|
|
|
|
sha256 = "140dyszz9hkpgwjdiwp1b7jdd8f8l5d862xdaf3ml4cimga1h5kv";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-11-10 17:22:15 -08:00
|
|
|
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-sdltest";
|
|
|
|
|
2013-09-05 18:47:49 -07:00
|
|
|
buildInputs = [ SDL libpng libjpeg libtiff libungif libXpm ];
|
2007-08-09 10:33:18 -07:00
|
|
|
|
2013-09-05 18:47:49 -07:00
|
|
|
meta = with stdenv.lib; {
|
2009-03-03 05:27:40 -08:00
|
|
|
description = "SDL image library";
|
2016-08-21 20:24:00 -07:00
|
|
|
homepage = "http://www.libsdl.org/projects/SDL_image/";
|
2013-09-05 18:47:49 -07:00
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
2015-03-05 12:56:41 -08:00
|
|
|
platforms = platforms.unix;
|
2018-08-19 01:13:06 -07:00
|
|
|
license = licenses.zlib;
|
2007-08-09 10:33:18 -07:00
|
|
|
};
|
2009-03-03 05:27:40 -08:00
|
|
|
}
|