1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

Merge pull request #19103 from rushmorem/torcs

torcs: 1.3.5 -> 1.3.7
This commit is contained in:
Rushmore Mushambi 2016-09-30 14:21:41 +02:00 committed by GitHub
commit ba57a55a8b

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/;