2018-02-24 13:12:44 +00:00
|
|
|
{ stdenv, fetchurl, cmake, libGLU_combined, libX11, libXv, libjpeg_turbo, fltk }:
|
2015-12-04 21:33:02 +00:00
|
|
|
|
2016-03-03 12:55:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2015-12-04 21:33:02 +00:00
|
|
|
name = "virtualgl-lib-${version}";
|
2017-07-27 12:55:12 +00:00
|
|
|
version = "2.5.2";
|
2015-12-04 21:33:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/virtualgl/VirtualGL-${version}.tar.gz";
|
2017-07-27 12:55:12 +00:00
|
|
|
sha256 = "0f1jp7r4vajiksbiq08hkxd5bjj0jxlw7dy5750s52djg1v3hhsg";
|
2015-12-04 21:33:02 +00:00
|
|
|
};
|
|
|
|
|
2016-04-24 17:24:01 +00:00
|
|
|
cmakeFlags = [ "-DVGL_SYSTEMFLTK=1" "-DTJPEG_LIBRARY=${libjpeg_turbo.out}/lib/libturbojpeg.so" ];
|
2015-12-04 21:33:02 +00:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2018-02-24 13:12:44 +00:00
|
|
|
buildInputs = [ libjpeg_turbo libGLU_combined fltk libX11 libXv ];
|
2015-12-04 21:33:02 +00:00
|
|
|
|
2016-03-03 12:55:55 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-12-04 21:33:02 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://www.virtualgl.org/;
|
2015-12-04 21:33:02 +00:00
|
|
|
description = "X11 GL rendering in a remote computer with full 3D hw acceleration";
|
|
|
|
license = licenses.free; # many parts under different free licenses
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|