2017-02-18 08:23:07 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, guile, buildEnv
|
2014-10-31 16:50:54 +01:00
|
|
|
, SDL, SDL_image, SDL_ttf, SDL_mixer
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-09-28 05:53:08 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "guile-sdl";
|
|
|
|
version = "0.5.2";
|
2014-10-31 16:50:54 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-09-28 05:53:08 +02:00
|
|
|
url = "mirror://gnu/${pname}/${name}.tar.xz";
|
|
|
|
sha256 = "0cjgs012a9922hn6xqwj66w6qmfs3nycnm56hyykx5n3g5p7ag01";
|
2014-10-31 16:50:54 +01:00
|
|
|
};
|
|
|
|
|
2017-02-18 08:23:07 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig guile ];
|
2014-10-31 16:50:54 +01:00
|
|
|
|
2017-09-24 13:03:56 +02:00
|
|
|
buildInputs = [ SDL.dev SDL_image SDL_ttf SDL_mixer ];
|
2014-10-31 16:50:54 +01:00
|
|
|
|
|
|
|
GUILE_AUTO_COMPILE = 0;
|
|
|
|
|
|
|
|
makeFlags = let
|
|
|
|
sdl = buildEnv {
|
|
|
|
name = "sdl-env";
|
|
|
|
paths = buildInputs;
|
|
|
|
};
|
|
|
|
in "SDLMINUSI=-I${sdl}/include/SDL";
|
2017-09-24 13:03:56 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Guile bindings for SDL";
|
|
|
|
homepage = "http://gnu.org/s/guile-sdl";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ vyp ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-10-31 16:50:54 +01:00
|
|
|
}
|