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