2010-07-28 17:35:01 +02:00
|
|
|
{ stdenv, fetchurl, SDL, libpng, libjpeg, libtiff, libungif, libXpm }:
|
2009-03-03 14:27:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2008-02-06 22:17:42 +01:00
|
|
|
pname = "SDL_image";
|
2011-02-09 22:10:05 +01:00
|
|
|
version = "1.2.10";
|
2008-02-06 22:17:42 +01:00
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
2007-08-09 19:33:18 +02:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2008-02-06 22:17:42 +01:00
|
|
|
url = "http://www.libsdl.org/projects/${pname}/release/${name}.tar.gz";
|
2011-02-09 22:10:05 +01:00
|
|
|
sha256 = "0xhqw56xgc0rn3ziccirib8ai2whbbidjmvig527n9znjlg5vq3m";
|
2008-02-06 22:17:42 +01:00
|
|
|
};
|
2007-08-09 19:33:18 +02:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
buildInputs = [SDL libpng libjpeg libtiff libungif libXpm];
|
2007-08-09 19:33:18 +02:00
|
|
|
|
2011-02-09 22:10:05 +01:00
|
|
|
postInstall = "ln -sv $out/include/SDL/SDL_image.h $out/include/";
|
2007-08-09 19:33:18 +02:00
|
|
|
|
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "SDL image library";
|
2007-08-09 19:33:18 +02:00
|
|
|
};
|
2009-03-03 14:27:40 +01:00
|
|
|
}
|