1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/guile-modules/guile-sdl/default.nix
2016-07-16 12:06:51 +08:00

35 lines
738 B
Nix

{ stdenv, fetchurl, guile, buildEnv
, SDL, SDL_image, SDL_ttf, SDL_mixer
}:
stdenv.mkDerivation rec {
name = "guile-sdl-0.5.1";
meta = with stdenv.lib; {
description = "Guile bindings for SDL";
homepage = "http://gnu.org/s/guile-sdl";
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
src = fetchurl {
url = "mirror://gnu/guile-sdl/${name}.tar.xz";
sha256 = "126n4rd0ydh6i2s11ari5k85iivradlf12zq13b34shf9k1wn5am";
};
nativeBuildInputs = [ guile ];
buildInputs = [
SDL.dev SDL_image SDL_ttf SDL_mixer
];
GUILE_AUTO_COMPILE = 0;
makeFlags = let
sdl = buildEnv {
name = "sdl-env";
paths = buildInputs;
};
in "SDLMINUSI=-I${sdl}/include/SDL";
}