about summary refs log tree commit diff
path: root/pkgs/games/prboom/default.nix
blob: 95ad53cb1ae3787912ec46f95dc95dfe6fd40888 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{stdenv, fetchurl, SDL, SDL_mixer, SDL_net, mesa}:

stdenv.mkDerivation {
  name = "prboom-2.5.0";
  src = fetchurl {
    url = mirror://sourceforge/prboom/prboom-2.5.0.tar.gz;
    sha256 = "1bjb04q8dk232956k30qlpq6q0hxb904yh1nflr87jcc1x3iqv12";
  };

  buildInputs = [ SDL SDL_mixer SDL_net mesa ];
  crossAttrs = {
    propagatedBuildInputs = [ SDL.crossDrv SDL_mixer.crossDrv SDL_net.crossDrv ];
    configureFlags = "--disable-gl --disable-cpu-opt --without-x --disable-sdltest
      ac_cv_type_uid_t=yes ac_cv_type_gid_t=yes";

    postInstall = ''
      mv $out/games/ $out/bin
    '';
  };
}