mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
5be0a9acd7
This is for consistency with terminology in stdenv (and the terms "hostDrv" and "buildDrv" are not very intuitive, even if they're consistent with GNU terminology).
21 lines
599 B
Nix
21 lines
599 B
Nix
{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
|
|
'';
|
|
};
|
|
}
|