2021-04-17 00:35:05 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, SDL2
|
|
|
|
, SDL2_image
|
|
|
|
, SDL2_mixer
|
|
|
|
, SDL2_ttf
|
|
|
|
, guile
|
|
|
|
, libtool
|
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-04-17 00:35:05 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "guile-sdl2";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-04-17 00:35:05 +00:00
|
|
|
url = "https://files.dthompson.us/${pname}/${pname}-${version}.tar.gz";
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-V/XrpFrqOxS5mAphtIt2e3ewflK+HdLFEqOmix98p+w=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-17 00:35:05 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
libtool
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-04-17 00:35:05 +00:00
|
|
|
SDL2
|
|
|
|
SDL2_image
|
|
|
|
SDL2_mixer
|
|
|
|
SDL2_ttf
|
|
|
|
guile
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-libsdl2-image-prefix=${SDL2_image}"
|
|
|
|
"--with-libsdl2-mixer-prefix=${SDL2_mixer}"
|
2021-04-17 00:35:05 +00:00
|
|
|
"--with-libsdl2-prefix=${SDL2}"
|
|
|
|
"--with-libsdl2-ttf-prefix=${SDL2_ttf}"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-04-17 00:35:05 +00:00
|
|
|
makeFlags = [
|
|
|
|
"GUILE_AUTO_COMPILE=0"
|
|
|
|
];
|
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://dthompson.us/projects/guile-sdl2.html";
|
2021-04-17 00:35:05 +00:00
|
|
|
description = "Bindings to SDL2 for GNU Guile";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ seppeljordan vyp ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|