nixpkgs/pkgs/development/guile-modules/guile-sdl2/default.nix

53 lines
1,005 B
Nix
Raw Normal View History

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