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