linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / SDL2_image / default.nix
blob96f85ddb0ea51b678e3ff7cdc845612750511e40
1 { lib, stdenv, fetchurl, SDL2, libpng, libjpeg, libtiff, libungif, libwebp, libXpm, zlib, Foundation }:
3 stdenv.mkDerivation rec {
4   pname = "SDL2_image";
5   version = "2.0.5";
7   src = fetchurl {
8     url = "https://www.libsdl.org/projects/SDL_image/release/${pname}-${version}.tar.gz";
9     sha256 = "1l0864kas9cwpp2d32yxl81g98lx40dhbdp03dz7sbv84vhgdmdx";
10   };
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;
20   meta = with lib; {
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 ];
26   };