summary refs log tree commit diff
path: root/pkgs/games/torcs
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2017-11-05 18:23:31 +0100
committerVladimír Čunát <vcunat@gmail.com>2017-11-05 18:23:31 +0100
commit4f8b98035500c02338488ccd0c7627c17697e8cf (patch)
tree18821f8adaa02d45ef34846680574f59a039f4b7 /pkgs/games/torcs
parent72e1e2ce5a37e6e5ed426f89dde8e331f6b89dae (diff)
downloadnixpkgs-4f8b98035500c02338488ccd0c7627c17697e8cf.tar
nixpkgs-4f8b98035500c02338488ccd0c7627c17697e8cf.tar.gz
nixpkgs-4f8b98035500c02338488ccd0c7627c17697e8cf.tar.bz2
nixpkgs-4f8b98035500c02338488ccd0c7627c17697e8cf.tar.lz
nixpkgs-4f8b98035500c02338488ccd0c7627c17697e8cf.tar.xz
nixpkgs-4f8b98035500c02338488ccd0c7627c17697e8cf.tar.zst
nixpkgs-4f8b98035500c02338488ccd0c7627c17697e8cf.zip
torcs: fix libGL when the OS uses non-mesa
Fixes OP of issue #30749.
Diffstat (limited to 'pkgs/games/torcs')
-rw-r--r--pkgs/games/torcs/default.nix11
1 files changed, 2 insertions, 9 deletions
diff --git a/pkgs/games/torcs/default.nix b/pkgs/games/torcs/default.nix
index 1b6ad5b34c3..26f0fe534f3 100644
--- a/pkgs/games/torcs/default.nix
+++ b/pkgs/games/torcs/default.nix
@@ -1,4 +1,4 @@
-{ fetchpatch, fetchurl, stdenv, mesa, freeglut, libX11, plib, openal, freealut, libXrandr, xproto,
+{ fetchpatch, fetchurl, stdenv, mesa_glu, freeglut, libX11, plib, openal, freealut, libXrandr, xproto,
 libXext, libSM, libICE, libXi, libXt, libXrender, libXxf86vm, libvorbis,
 libpng, zlib, bash, makeWrapper }:
 
@@ -29,18 +29,11 @@ stdenv.mkDerivation rec {
     sed -i -e s,/bin/bash,`type -P bash`, src/linux/torcs.in
   '';
 
-  buildInputs = [ mesa freeglut libX11 plib openal freealut libXrandr xproto
+  buildInputs = [ mesa_glu freeglut libX11 plib openal freealut libXrandr xproto
     libXext libSM libICE libXi libXt libXrender libXxf86vm libpng zlib libvorbis makeWrapper ];
 
-  nativeBuildInputs = [ bash ];
-
   installTargets = "install datainstall";
 
-  postInstall = ''
-    wrapProgram $out/bin/torcs \
-      --prefix LD_LIBRARY_PATH : ${mesa}/lib
-  '';
-
   meta = {
     description = "Car racing game";
     homepage = http://torcs.sourceforge.net/;