2021-04-15 15:59:41 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, SDL
|
|
|
|
, SDL_image
|
|
|
|
, SDL_mixer
|
|
|
|
, SDL_ttf
|
|
|
|
, buildEnv
|
|
|
|
, guile
|
|
|
|
, pkg-config
|
2014-10-31 15:50:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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";
|
2021-04-15 15:59:41 +01:00
|
|
|
hash = "sha256-ATx1bnnDlj69h6ZUy7wd2lVsuDGS424sFCIlJQLQTzI=";
|
2014-10-31 15:50:54 +00:00
|
|
|
};
|
|
|
|
|
2021-04-15 15:59:41 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
guile
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
SDL.dev
|
|
|
|
SDL_image
|
|
|
|
SDL_mixer
|
|
|
|
SDL_ttf
|
|
|
|
];
|
2014-10-31 15:50:54 +00:00
|
|
|
|
|
|
|
makeFlags = let
|
2021-04-15 15:59:41 +01:00
|
|
|
sdl-env = buildEnv {
|
2014-10-31 15:50:54 +00:00
|
|
|
name = "sdl-env";
|
|
|
|
paths = buildInputs;
|
|
|
|
};
|
2021-04-15 15:59:41 +01:00
|
|
|
in [
|
|
|
|
"GUILE_AUTO_COMPILE=0"
|
|
|
|
"SDLMINUSI=-I${sdl-env}/include/SDL"
|
|
|
|
];
|
2017-09-24 12:03:56 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-12-01 18:22:13 +00:00
|
|
|
homepage = "https://www.gnu.org/software/guile-sdl/";
|
2021-04-15 15:59:41 +01:00
|
|
|
description = "Guile bindings for 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
|
|
|
}
|