2018-02-24 13:59:47 +01:00
|
|
|
{ fetchpatch, fetchurl, stdenv, libGLU, freeglut, libX11, plib, openal, freealut, libXrandr, xproto,
|
2012-01-26 09:36:23 +01:00
|
|
|
libXext, libSM, libICE, libXi, libXt, libXrender, libXxf86vm, libvorbis,
|
2016-09-30 13:45:04 +02:00
|
|
|
libpng, zlib, bash, makeWrapper }:
|
2010-08-22 16:18:58 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-09-30 13:45:04 +02:00
|
|
|
name = "torcs-1.3.7";
|
2010-08-22 16:18:58 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/torcs/${name}.tar.bz2";
|
2016-09-30 13:45:04 +02:00
|
|
|
sha256 = "0kdq0sc7dsfzlr0ggbxggcbkivc6yp30nqwjwcaxg9295s3b06wa";
|
2010-08-22 16:18:58 +02:00
|
|
|
};
|
|
|
|
|
2017-10-22 22:09:19 +02:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://anonscm.debian.org/git/pkg-games/torcs.git/plain/debian/patches/gcc6-isnan.patch";
|
|
|
|
sha256 = "16scmq30vwb8429ah9d4ws0v1w6ai59lvn7hcgnvfzyap42ry876";
|
|
|
|
})
|
2017-10-22 22:09:46 +02:00
|
|
|
(fetchpatch {
|
|
|
|
url = "https://anonscm.debian.org/git/pkg-games/torcs.git/plain/debian/patches/format-argument.patch";
|
|
|
|
sha256 = "04advcx88yh23ww767iysydzhp370x7cqp2wf9hk2y1qvw7mxsja";
|
|
|
|
})
|
2017-10-22 22:10:49 +02:00
|
|
|
(fetchpatch {
|
|
|
|
url = "https://anonscm.debian.org/git/pkg-games/torcs.git/plain/debian/patches/glibc-default-source.patch";
|
|
|
|
sha256 = "0k4hgpddnhv68mdc9ics7ah8q54j60g394d7zmcmzg6l3bjd9pyp";
|
|
|
|
})
|
2017-10-22 22:09:19 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2010-08-22 16:18:58 +02:00
|
|
|
sed -i -e s,/bin/bash,`type -P bash`, src/linux/torcs.in
|
|
|
|
'';
|
|
|
|
|
2018-02-24 13:59:47 +01:00
|
|
|
buildInputs = [ libGLU freeglut libX11 plib openal freealut libXrandr xproto
|
2016-09-30 13:45:04 +02:00
|
|
|
libXext libSM libICE libXi libXt libXrender libXxf86vm libpng zlib libvorbis makeWrapper ];
|
2012-01-26 09:36:23 +01:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|