mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Fixing virtualgl for 'vglrun' to work fine and simple, under xproxy (like tigervnc).
svn path=/nixpkgs/trunk/; revision=22586
This commit is contained in:
parent
83335bda50
commit
d0f681d657
@ -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"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user