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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1005 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";
2022-10-31 10:03:55 +00:00
version = "0.8.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";
2022-10-31 10:03:55 +00:00
hash = "sha256-V/XrpFrqOxS5mAphtIt2e3ewflK+HdLFEqOmix98p+w=";
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
};
}