2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, 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
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config 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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-24 12:03:56 +01:00
|
|
|
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
|
|
|
}
|