forked from mirrors/nixpkgs
guile-sdl: new package
This commit is contained in:
parent
0433a33816
commit
00ec235e44
35
pkgs/development/guile-modules/guile-sdl/default.nix
Normal file
35
pkgs/development/guile-modules/guile-sdl/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ 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;
|
||||
maintainers = with maintainers; [ iyzsong ];
|
||||
};
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/guile-sdl/${name}.tar.xz";
|
||||
sha256 = "126n4rd0ydh6i2s11ari5k85iivradlf12zq13b34shf9k1wn5am";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ guile ];
|
||||
|
||||
buildInputs = [
|
||||
SDL 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";
|
||||
}
|
|
@ -4199,6 +4199,8 @@ let
|
|||
|
||||
guile-opengl = callPackage ../development/guile-modules/guile-opengl { };
|
||||
|
||||
guile-sdl = callPackage ../development/guile-modules/guile-sdl { };
|
||||
|
||||
guile-xcb = callPackage ../development/guile-modules/guile-xcb { };
|
||||
|
||||
pharo-vm = callPackage_i686 ../development/pharo/vm { };
|
||||
|
|
Loading…
Reference in a new issue