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

51 lines
879 B
Nix
Raw Normal View History

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 {
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 = [
SDL.dev
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"
];
meta = with lib; {
homepage = "https://www.gnu.org/software/guile-sdl/";
2021-04-15 14:59:41 +00:00
description = "Guile bindings for SDL";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ vyp ];
platforms = platforms.linux;
};
2014-10-31 15:50:54 +00:00
}