nixpkgs/pkgs/tools/X11/virtualgl/default.nix
Lluís Batlle i Rossell d0f681d657 Fixing virtualgl for 'vglrun' to work fine and simple, under xproxy (like tigervnc).
svn path=/nixpkgs/trunk/; revision=22586
2010-07-13 19:12:42 +00:00

30 lines
809 B
Nix

{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 {
url = mirror://sourceforge/virtualgl/VirtualGL-2.1.4.tar.gz;
sha256 = "d455e599620473a07711196615e59c73d08a7f392a9fcf60a6bc05d82809d89d";
};
patches = [ ./xshm.patch ];
prePatch = ''
sed -i s,LD_PRELOAD=lib,LD_PRELOAD=$out/${libDir}/lib, rr/vglrun
'';
preInstall =''
export makeFlags="prefix=$out"
'';
buildInputs = [ mesa libX11 openssl libXext libjpeg_turbo ];
meta = {
homepage = http://www.virtualgl.org/;
description = "X11 GL rendering in a remote computer with full 3D hw acceleration";
license = "free"; # many parts under different free licenses
};
}