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 {
|
|
|
|
name = "guile-sdl-0.5.1";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Guile bindings for SDL";
|
|
|
|
homepage = "http://gnu.org/s/guile-sdl";
|
|
|
|
license = licenses.gpl3Plus;
|
2017-09-24 12:23:10 +02:00
|
|
|
maintainers = with maintainers; [ vyp ];
|
2014-10-31 16:50:54 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/guile-sdl/${name}.tar.xz";
|
|
|
|
sha256 = "126n4rd0ydh6i2s11ari5k85iivradlf12zq13b34shf9k1wn5am";
|
|
|
|
};
|
|
|
|
|
2017-02-18 08:23:07 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig guile ];
|
2014-10-31 16:50:54 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2016-07-16 06:06:51 +02:00
|
|
|
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";
|
|
|
|
}
|