about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/ultimatestunts/default.nix
blob: a7ad366aa195c4a5f145c7130dd76144f13bda6f (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
{stdenv, fetchurl, SDL, libGLU_combined, SDL_image, freealut, openal, libvorbis,
pkgconfig}:

stdenv.mkDerivation {
  name = "ultimate-stunts-0.7.6.1";
  src = fetchurl {
    url = mirror://sourceforge/ultimatestunts/ultimatestunts-srcdata-0761.tar.gz;
    sha256 = "0rd565ml6l927gyq158klhni7myw8mgllhv0xl1fg9m8hlzssgrv";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ SDL libGLU_combined SDL_image freealut openal libvorbis ];

  postPatch = ''
    sed -e '1i#include <unistd.h>' -i $(find . -name '*.c' -o -name '*.cpp')
  '';

  meta = {
    homepage = http://www.ultimatestunts.nl/;
    description = "Remake of the popular racing DOS-game Stunts";
    license = stdenv.lib.licenses.gpl2Plus;
    maintainers = with stdenv.lib.maintainers; [viric];
    platforms = with stdenv.lib.platforms; linux;
  };
}