summaryrefslogtreecommitdiff
path: root/RCade.nix
blob: c86e7f23433ad07c6c5f09041c9197d6a7974365 (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/RCade
  '';
}