Adding the game 'racer'. It works only in i686-linux.
svn path=/nixpkgs/trunk/; revision=26520
This commit is contained in:
parent
f477fe9d3d
commit
4c3c311f75
25
pkgs/games/racer/default.nix
Normal file
25
pkgs/games/racer/default.nix
Normal 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+";
|
||||||
|
};
|
||||||
|
}
|
13
pkgs/games/racer/mkdir.patch
Normal file
13
pkgs/games/racer/mkdir.patch
Normal 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;
|
||||||
|
|
@ -7083,6 +7083,8 @@ let
|
|||||||
|
|
||||||
quake3game = callPackage ../games/quake3/game { };
|
quake3game = callPackage ../games/quake3/game { };
|
||||||
|
|
||||||
|
racer = callPackage ../games/racer { };
|
||||||
|
|
||||||
rogue = callPackage ../games/rogue { };
|
rogue = callPackage ../games/rogue { };
|
||||||
|
|
||||||
sauerbraten = callPackage ../games/sauerbraten {};
|
sauerbraten = callPackage ../games/sauerbraten {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user