2021-02-12 13:15:48 -08:00
|
|
|
{ lib, stdenv, fetchurl, SDL2, libpng, libjpeg, libtiff, giflib, libwebp, libXpm, zlib, Foundation }:
|
2013-07-04 10:59:43 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "SDL2_image";
|
2019-07-16 12:14:56 -07:00
|
|
|
version = "2.0.5";
|
2013-07-04 10:59:43 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "https://www.libsdl.org/projects/SDL_image/release/${pname}-${version}.tar.gz";
|
2019-07-16 12:14:56 -07:00
|
|
|
sha256 = "1l0864kas9cwpp2d32yxl81g98lx40dhbdp03dz7sbv84vhgdmdx";
|
2013-07-04 10:59:43 -07:00
|
|
|
};
|
|
|
|
|
2021-02-12 13:15:48 -08:00
|
|
|
buildInputs = [ SDL2 libpng libjpeg libtiff giflib libwebp libXpm zlib ]
|
2021-01-21 09:00:13 -08:00
|
|
|
++ lib.optional stdenv.isDarwin Foundation;
|
2017-11-27 07:30:05 -08:00
|
|
|
|
2018-06-06 16:18:00 -07:00
|
|
|
|
2021-01-21 09:00:13 -08:00
|
|
|
configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
|
2018-06-06 16:18:00 -07:00
|
|
|
|
2017-11-27 07:30:05 -08:00
|
|
|
enableParallelBuilding = true;
|
2013-07-04 10:59:43 -07:00
|
|
|
|
2021-01-21 09:00:13 -08:00
|
|
|
meta = with lib; {
|
2013-07-04 10:59:43 -07:00
|
|
|
description = "SDL image library";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://www.libsdl.org/projects/SDL_image/";
|
2017-11-27 07:30:05 -08:00
|
|
|
platforms = platforms.unix;
|
2016-08-21 20:24:32 -07:00
|
|
|
license = licenses.zlib;
|
2018-03-06 02:24:12 -08:00
|
|
|
maintainers = with maintainers; [ cpages ];
|
2013-07-04 10:59:43 -07:00
|
|
|
};
|
|
|
|
}
|