2012-02-05 00:51:35 +00:00
|
|
|
{ stdenv, fetchurl, mesa, libX11, openssl, libXext
|
|
|
|
, libjpeg_turbo, cmake }:
|
2010-07-10 08:45:44 +00:00
|
|
|
|
2010-07-13 19:12:42 +00:00
|
|
|
let
|
2013-03-01 09:17:29 +00:00
|
|
|
version = "2.3.2";
|
2010-07-13 19:12:42 +00:00
|
|
|
in
|
2010-07-10 08:45:44 +00:00
|
|
|
stdenv.mkDerivation {
|
2013-03-01 09:17:29 +00:00
|
|
|
name = "virtualgl-${version}";
|
2010-07-10 08:45:44 +00:00
|
|
|
src = fetchurl {
|
2013-03-01 09:17:29 +00:00
|
|
|
url = "mirror://sourceforge/virtualgl/VirtualGL-${version}.tar.gz";
|
|
|
|
sha256 = "062lrhd8yr13ch4wpgzxdabqs92j4q7fcl3a0c3sdlav4arspqmy";
|
2010-07-10 08:45:44 +00:00
|
|
|
};
|
|
|
|
|
2012-02-05 00:51:35 +00:00
|
|
|
patches = [ ./xshm.patch ./fixturbopath.patch ];
|
2010-07-10 08:45:44 +00:00
|
|
|
|
2010-07-13 19:12:42 +00:00
|
|
|
prePatch = ''
|
2013-03-01 09:17:29 +00:00
|
|
|
sed -i s,LD_PRELOAD=lib,LD_PRELOAD=$out/lib/lib, server/vglrun
|
2010-07-13 19:12:42 +00:00
|
|
|
'';
|
|
|
|
|
2012-02-05 00:51:35 +00:00
|
|
|
cmakeFlags = [ "-DTJPEG_LIBRARY=${libjpeg_turbo}/lib/libturbojpeg.so" ];
|
|
|
|
|
|
|
|
preInstall = ''
|
2010-07-10 08:45:44 +00:00
|
|
|
export makeFlags="prefix=$out"
|
|
|
|
'';
|
|
|
|
|
2012-02-05 00:51:35 +00:00
|
|
|
buildInputs = [ cmake mesa libX11 openssl libXext libjpeg_turbo ];
|
2010-07-10 08:45:44 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.virtualgl.org/;
|
|
|
|
description = "X11 GL rendering in a remote computer with full 3D hw acceleration";
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.free; # many parts under different free licenses
|
2010-07-10 08:45:44 +00:00
|
|
|
};
|
|
|
|
}
|