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

36 lines
849 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, guile, buildEnv
2014-10-31 15:50:54 +00:00
, SDL, SDL_image, SDL_ttf, SDL_mixer
}:
stdenv.mkDerivation rec {
2017-09-28 04:53:08 +01:00
name = "${pname}-${version}";
pname = "guile-sdl";
version = "0.5.2";
2014-10-31 15:50:54 +00:00
src = fetchurl {
2017-09-28 04:53:08 +01:00
url = "mirror://gnu/${pname}/${name}.tar.xz";
sha256 = "0cjgs012a9922hn6xqwj66w6qmfs3nycnm56hyykx5n3g5p7ag01";
2014-10-31 15:50:54 +00:00
};
nativeBuildInputs = [ pkgconfig guile ];
2014-10-31 15:50:54 +00:00
buildInputs = [ SDL.dev SDL_image SDL_ttf SDL_mixer ];
2014-10-31 15:50:54 +00:00
GUILE_AUTO_COMPILE = 0;
makeFlags = let
sdl = buildEnv {
name = "sdl-env";
paths = buildInputs;
};
in "SDLMINUSI=-I${sdl}/include/SDL";
meta = with stdenv.lib; {
description = "Guile bindings for SDL";
homepage = "https://www.gnu.org/software/guile-sdl/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ vyp ];
platforms = platforms.linux;
};
2014-10-31 15:50:54 +00:00
}