Fixing virtualgl for 'vglrun' to work fine and simple, under xproxy (like tigervnc).

svn path=/nixpkgs/trunk/; revision=22586
This commit is contained in:
Lluís Batlle i Rossell 2010-07-13 19:12:42 +00:00
parent 83335bda50
commit d0f681d657

View File

@ -1,5 +1,8 @@
{stdenv, fetchurl, mesa, libX11, openssl, libXext, libjpeg_turbo}:
let
libDir = if stdenv.is64bit then "lib64" else "lib";
in
stdenv.mkDerivation {
name = "virtualgl-2.1.4";
src = fetchurl {
@ -9,6 +12,10 @@ stdenv.mkDerivation {
patches = [ ./xshm.patch ];
prePatch = ''
sed -i s,LD_PRELOAD=lib,LD_PRELOAD=$out/${libDir}/lib, rr/vglrun
'';
preInstall =''
export makeFlags="prefix=$out"
'';