2021-04-15 15:59:56 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, SDL2
|
|
|
|
, SDL2_image
|
|
|
|
, SDL2_mixer
|
|
|
|
, SDL2_ttf
|
|
|
|
, guile
|
|
|
|
, libtool
|
|
|
|
, pkg-config
|
2017-09-28 05:40:12 +01:00
|
|
|
}:
|
|
|
|
|
2021-04-15 15:59:56 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-09-28 05:40:12 +01:00
|
|
|
pname = "guile-sdl2";
|
2020-07-03 15:21:49 +01:00
|
|
|
version = "0.5.0";
|
2017-09-28 05:40:12 +01:00
|
|
|
|
2017-09-28 05:54:04 +01:00
|
|
|
src = fetchurl {
|
2021-04-15 15:59:56 +01:00
|
|
|
url = "https://files.dthompson.us/${pname}/${pname}-${version}.tar.gz";
|
|
|
|
hash = "sha256-lWTLctPUDqvN/Y95oOL7LF3czlLJFQ9d9np9dx4DHYU=";
|
2016-05-15 12:36:01 +01:00
|
|
|
};
|
2017-09-28 05:40:12 +01:00
|
|
|
|
2021-04-15 15:59:56 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
libtool
|
|
|
|
];
|
2017-09-28 05:40:12 +01:00
|
|
|
buildInputs = [
|
2021-04-15 15:59:56 +01:00
|
|
|
SDL2
|
|
|
|
SDL2_image
|
|
|
|
SDL2_mixer
|
|
|
|
SDL2_ttf
|
|
|
|
guile
|
2017-09-28 05:40:12 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-libsdl2-image-prefix=${SDL2_image}"
|
|
|
|
"--with-libsdl2-mixer-prefix=${SDL2_mixer}"
|
2021-04-15 15:59:56 +01:00
|
|
|
"--with-libsdl2-prefix=${SDL2}"
|
|
|
|
"--with-libsdl2-ttf-prefix=${SDL2_ttf}"
|
2017-09-28 05:40:12 +01:00
|
|
|
];
|
|
|
|
|
2021-04-15 15:59:56 +01:00
|
|
|
makeFlags = [
|
|
|
|
"GUILE_AUTO_COMPILE=0"
|
|
|
|
];
|
2017-09-28 05:40:12 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-28 05:41:12 +01:00
|
|
|
homepage = "https://dthompson.us/projects/guile-sdl2.html";
|
2021-04-15 15:59:56 +01:00
|
|
|
description = "Bindings to SDL2 for GNU Guile";
|
2017-09-28 05:42:55 +01:00
|
|
|
license = licenses.lgpl3Plus;
|
2017-09-28 05:40:32 +01:00
|
|
|
maintainers = with maintainers; [ seppeljordan vyp ];
|
2017-09-28 05:40:12 +01:00
|
|
|
platforms = platforms.all;
|
2016-05-15 12:36:01 +01:00
|
|
|
};
|
|
|
|
}
|