2010-08-22 16:18:58 +02:00
|
|
|
{ fetchurl, stdenv, mesa, freeglut, libX11, plib, openal, freealut, libXrandr, xproto,
|
2012-01-26 09:36:23 +01:00
|
|
|
libXext, libSM, libICE, libXi, libXt, libXrender, libXxf86vm, libvorbis,
|
2010-08-22 16:18:58 +02:00
|
|
|
libpng, zlib, bash }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-12-04 03:49:13 +01:00
|
|
|
name = "torcs-1.3.5";
|
2010-08-22 16:18:58 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/torcs/${name}.tar.bz2";
|
2013-12-04 03:49:13 +01:00
|
|
|
sha256 = "170ff98smkkv1sk4nbz9w0alhmmbr32djmgbc08lcfhf0lj2ni38";
|
2010-08-22 16:18:58 +02: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 09:36:23 +01:00
|
|
|
libXext libSM libICE libXi libXt libXrender libXxf86vm libpng zlib libvorbis ];
|
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ bash ];
|
2010-08-22 16:18:58 +02:00
|
|
|
|
|
|
|
installTargets = "install datainstall";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Car racing game";
|
|
|
|
homepage = http://torcs.sourceforge.net/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-08-22 16:18:58 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2013-11-05 00:04:36 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
hydraPlatforms = [];
|
2010-08-22 16:18:58 +02:00
|
|
|
};
|
|
|
|
}
|