2011-03-25 23:33:09 +00:00
|
|
|
{ fetchurl, stdenv, allegro, libjpeg, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "racer-1.1";
|
|
|
|
|
2018-08-20 20:11:29 +01:00
|
|
|
src = if stdenv.hostPlatform.system == "i686-linux" then fetchurl {
|
2011-03-25 23:33:09 +00:00
|
|
|
url = http://hippo.nipax.cz/src/racer-1.1.tar.gz;
|
|
|
|
sha256 = "0fll1qkqfcjq87k0jzsilcw701z92lfxn2y5ga1n038772lymxl9";
|
2018-08-20 20:11:29 +01:00
|
|
|
} else if stdenv.hostPlatform.system == "x86_64-linux" then fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = https://hippo.nipax.cz/src/racer-1.1.64.tar.gz;
|
2011-03-25 23:37:44 +00:00
|
|
|
sha256 = "0rjy3gmlhwfkb9zs58j0mc0dar0livwpbc19r6zw5r2k6r7xdan0";
|
|
|
|
} else
|
|
|
|
throw "System not supported";
|
|
|
|
|
2011-03-25 23:33:09 +00:00
|
|
|
|
|
|
|
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;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-03-25 23:33:09 +00:00
|
|
|
};
|
|
|
|
}
|