torcs: 1.3.5 -> 1.3.7
This change also wraps `torcs` with `mesa` to fix the runtime crush due to this dependancy which was missing.
This commit is contained in:
parent
73dd89205c
commit
d332b914ce
|
@ -1,13 +1,13 @@
|
||||||
{ fetchurl, stdenv, mesa, freeglut, libX11, plib, openal, freealut, libXrandr, xproto,
|
{ fetchurl, stdenv, mesa, freeglut, libX11, plib, openal, freealut, libXrandr, xproto,
|
||||||
libXext, libSM, libICE, libXi, libXt, libXrender, libXxf86vm, libvorbis,
|
libXext, libSM, libICE, libXi, libXt, libXrender, libXxf86vm, libvorbis,
|
||||||
libpng, zlib, bash }:
|
libpng, zlib, bash, makeWrapper }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "torcs-1.3.5";
|
name = "torcs-1.3.7";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/torcs/${name}.tar.bz2";
|
url = "mirror://sourceforge/torcs/${name}.tar.bz2";
|
||||||
sha256 = "170ff98smkkv1sk4nbz9w0alhmmbr32djmgbc08lcfhf0lj2ni38";
|
sha256 = "0kdq0sc7dsfzlr0ggbxggcbkivc6yp30nqwjwcaxg9295s3b06wa";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
|
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ mesa freeglut libX11 plib openal freealut libXrandr xproto
|
buildInputs = [ mesa freeglut libX11 plib openal freealut libXrandr xproto
|
||||||
libXext libSM libICE libXi libXt libXrender libXxf86vm libpng zlib libvorbis ];
|
libXext libSM libICE libXi libXt libXrender libXxf86vm libpng zlib libvorbis makeWrapper ];
|
||||||
|
|
||||||
nativeBuildInputs = [ bash ];
|
nativeBuildInputs = [ bash ];
|
||||||
|
|
||||||
|
@ -23,6 +23,11 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/torcs \
|
||||||
|
--prefix LD_LIBRARY_PATH : ${mesa}/lib
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Car racing game";
|
description = "Car racing game";
|
||||||
homepage = http://torcs.sourceforge.net/;
|
homepage = http://torcs.sourceforge.net/;
|
||||||
|
|
Loading…
Reference in a new issue