about summary refs log tree commit diff
path: root/pkgs/development/guile-modules/guile-sdl/default.nix
blob: 4a0f23457ba670baaf3feac94a66119661bfa3ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ 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 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";
}