2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, guile, buildEnv
|
2020-04-24 23:36:52 +00:00
|
|
|
, SDL, SDL_image, SDL_ttf, SDL_mixer
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "guile-sdl";
|
|
|
|
version = "0.5.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/${pname}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "0cjgs012a9922hn6xqwj66w6qmfs3nycnm56hyykx5n3g5p7ag01";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config guile ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ SDL.dev SDL_image SDL_ttf SDL_mixer ];
|
|
|
|
|
|
|
|
GUILE_AUTO_COMPILE = 0;
|
|
|
|
|
|
|
|
makeFlags = let
|
|
|
|
sdl = buildEnv {
|
|
|
|
name = "sdl-env";
|
|
|
|
paths = buildInputs;
|
|
|
|
};
|
|
|
|
in [ "SDLMINUSI=-I${sdl}/include/SDL" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Guile bindings for SDL";
|
|
|
|
homepage = "https://www.gnu.org/software/guile-sdl/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ vyp ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|