1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/SDL2_image/default.nix

28 lines
847 B
Nix
Raw Normal View History

{ stdenv, fetchurl, SDL2, libpng, libjpeg, libtiff, libungif, libXpm, zlib }:
stdenv.mkDerivation rec {
2016-05-10 00:24:01 +01:00
name = "SDL2_image-2.0.1";
src = fetchurl {
url = "http://www.libsdl.org/projects/SDL_image/release/${name}.tar.gz";
2016-05-10 00:24:01 +01:00
sha256 = "0r3z1l7fdn76qkpy7snpkcjqz8dkv2zp6lsqpq25q4m5xsyaygis";
};
buildInputs = [SDL2 libpng libjpeg libtiff libungif libXpm zlib];
postInstall = ''
sed -i -e 's,"SDL.h",<SDL2/SDL.h>,' \
-e 's,"SDL_version.h",<SDL2/SDL_version.h>,' \
-e 's,"begin_code.h",<SDL2/begin_code.h>,' \
-e 's,"close_code.h",<SDL2/close_code.h>,' \
$out/include/SDL2/SDL_image.h
ln -sv SDL2/SDL_image.h $out/include/SDL_image.h
'';
meta = {
description = "SDL image library";
homepage = "http://www.libsdl.org/projects/SDL_image/";
2015-04-20 00:32:06 +01:00
platforms = stdenv.lib.platforms.unix;
};
}