3
0
Fork 0
forked from mirrors/nixpkgs

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:
rushmorem 2016-09-30 13:45:04 +02:00
parent 73dd89205c
commit d332b914ce

View file

@ -1,13 +1,13 @@
{ fetchurl, stdenv, mesa, freeglut, libX11, plib, openal, freealut, libXrandr, xproto,
libXext, libSM, libICE, libXi, libXt, libXrender, libXxf86vm, libvorbis,
libpng, zlib, bash }:
libpng, zlib, bash, makeWrapper }:
stdenv.mkDerivation rec {
name = "torcs-1.3.5";
name = "torcs-1.3.7";
src = fetchurl {
url = "mirror://sourceforge/torcs/${name}.tar.bz2";
sha256 = "170ff98smkkv1sk4nbz9w0alhmmbr32djmgbc08lcfhf0lj2ni38";
sha256 = "0kdq0sc7dsfzlr0ggbxggcbkivc6yp30nqwjwcaxg9295s3b06wa";
};
patchPhase = ''
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
'';
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 ];
@ -23,6 +23,11 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ];
postInstall = ''
wrapProgram $out/bin/torcs \
--prefix LD_LIBRARY_PATH : ${mesa}/lib
'';
meta = {
description = "Car racing game";
homepage = http://torcs.sourceforge.net/;