summaryrefslogtreecommitdiff
path: root/RCade.nix
blob: ec219605951d32f602b1f3d96d0256817023bfa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv
, SDL
, SDL_ttf
, SDL_image
, SDL_gfx
, SDL_mixer
}:

stdenv.mkDerivation {
  name = "RCade";
  src = ./.;

  buildInputs = [ SDL SDL_ttf SDL_image SDL_gfx SDL_mixer ];

  preConfigure = ''
    export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${SDL}/include/SDL"
  '';

  installPhase = ''
    mkdir -p $out/bin
    install -m 555 Game $out/bin
  '';
}