2021-04-15 14:59:41 +00: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 03:53:08 +00:00
|
|
|
pname = "guile-sdl";
|
|
|
|
version = "0.5.2";
|
2014-10-31 15:50:54 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://gnu/${pname}/${pname}-${version}.tar.xz";
|
2021-04-15 14:59:41 +00:00
|
|
|
hash = "sha256-ATx1bnnDlj69h6ZUy7wd2lVsuDGS424sFCIlJQLQTzI=";
|
2014-10-31 15:50:54 +00:00
|
|
|
};
|
|
|
|
|
2021-04-15 14:59:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
guile
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = [
|
2022-05-10 05:09:26 +00:00
|
|
|
(lib.getDev SDL)
|
2021-04-15 14:59:41 +00:00
|
|
|
SDL_image
|
|
|
|
SDL_mixer
|
|
|
|
SDL_ttf
|
|
|
|
];
|
2014-10-31 15:50:54 +00:00
|
|
|
|
|
|
|
makeFlags = let
|
2021-04-15 14:59:41 +00:00
|
|
|
sdl-env = buildEnv {
|
2014-10-31 15:50:54 +00:00
|
|
|
name = "sdl-env";
|
|
|
|
paths = buildInputs;
|
|
|
|
};
|
2021-04-15 14:59:41 +00:00
|
|
|
in [
|
|
|
|
"GUILE_AUTO_COMPILE=0"
|
|
|
|
"SDLMINUSI=-I${sdl-env}/include/SDL"
|
|
|
|
];
|
2017-09-24 11:03:56 +00: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 14:59:41 +00:00
|
|
|
description = "Guile bindings for SDL";
|
2017-09-24 11:03:56 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ vyp ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-10-31 15:50:54 +00:00
|
|
|
}
|