2010-08-22 15:18:58 +01:00
|
|
|
{ fetchurl, stdenv, mesa, freeglut, libX11, plib, openal, freealut, libXrandr, xproto,
|
2012-01-26 08:36:23 +00:00
|
|
|
libXext, libSM, libICE, libXi, libXt, libXrender, libXxf86vm, libvorbis,
|
2010-08-22 15:18:58 +01:00
|
|
|
libpng, zlib, bash }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-01-26 08:36:23 +00:00
|
|
|
name = "torcs-1.3.2";
|
2010-08-22 15:18:58 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/torcs/${name}.tar.bz2";
|
2012-01-26 08:36:23 +00:00
|
|
|
sha256 = "0171ixhnd9cs8jkwa5awrxklfgyykcbc9m8270b8cw30lsx7qhp1";
|
2010-08-22 15:18:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e s,/bin/bash,`type -P bash`, src/linux/torcs.in
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ mesa freeglut libX11 plib openal freealut libXrandr xproto
|
2012-01-26 08:36:23 +00:00
|
|
|
libXext libSM libICE libXi libXt libXrender libXxf86vm libpng zlib libvorbis ];
|
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ bash ];
|
2010-08-22 15:18:58 +01:00
|
|
|
|
|
|
|
installTargets = "install datainstall";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Car racing game";
|
|
|
|
homepage = http://torcs.sourceforge.net/;
|
|
|
|
license = "GPLv2+";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2013-11-04 23:04:36 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
hydraPlatforms = [];
|
2010-08-22 15:18:58 +01:00
|
|
|
};
|
|
|
|
}
|