Adding the game 'racer'. It works only in i686-linux.

svn path=/nixpkgs/trunk/; revision=26520
This commit is contained in:
Lluís Batlle i Rossell 2011-03-25 23:33:09 +00:00
parent f477fe9d3d
commit 4c3c311f75
3 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ fetchurl, stdenv, allegro, libjpeg, makeWrapper }:
stdenv.mkDerivation rec {
name = "racer-1.1";
src = fetchurl {
url = http://hippo.nipax.cz/src/racer-1.1.tar.gz;
sha256 = "0fll1qkqfcjq87k0jzsilcw701z92lfxn2y5ga1n038772lymxl9";
};
buildInputs = [ allegro libjpeg makeWrapper ];
prePatch = ''
sed -i s,/usr/local,$out, Makefile src/HGFX.cpp src/STDH.cpp
sed -i s,/usr/share,$out/share, src/HGFX.cpp src/STDH.cpp
'';
patches = [ ./mkdir.patch ];
meta = {
description = "Car racing game";
homepage = http://hippo.nipax.cz/download.en.php;
license = "GPLv2+";
};
}

View file

@ -0,0 +1,13 @@
diff --git a/src/STDH.cpp b/src/STDH.cpp
index 5f78473..47c3f8b 100644
--- a/src/STDH.cpp
+++ b/src/STDH.cpp
@@ -5,6 +5,8 @@
#include "player.h"
#include "drivers.h"
#include "cup.h"
+#include <sys/stat.h>
+#include <sys/types.h>
HScreen hscreen;

View file

@ -7083,6 +7083,8 @@ let
quake3game = callPackage ../games/quake3/game { };
racer = callPackage ../games/racer { };
rogue = callPackage ../games/rogue { };
sauerbraten = callPackage ../games/sauerbraten {};