2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake
|
2021-07-08 12:15:53 +00:00
|
|
|
, libGL, libGLU, libXv, libXtst, libXi, libjpeg_turbo, fltk
|
2020-11-26 10:32:16 +00:00
|
|
|
, xorg
|
|
|
|
, opencl-headers, opencl-clhpp, ocl-icd
|
|
|
|
}:
|
2015-12-04 21:33:02 +00:00
|
|
|
|
2016-03-03 12:55:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "virtualgl-lib";
|
2020-11-26 10:32:16 +00:00
|
|
|
version = "2.6.5";
|
2015-12-04 21:33:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/virtualgl/VirtualGL-${version}.tar.gz";
|
2020-11-26 10:32:16 +00:00
|
|
|
sha256 = "1giin3jmcs6y616bb44bpz30frsmj9f8pz2vg7jvb9vcfc9456rr";
|
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 ];
|
|
|
|
|
2020-11-26 10:32:16 +00:00
|
|
|
buildInputs = [ libjpeg_turbo libGL libGLU fltk
|
2021-07-08 12:15:53 +00:00
|
|
|
libXv libXtst libXi xorg.xcbutilkeysyms
|
2020-11-26 10:32:16 +00:00
|
|
|
opencl-headers opencl-clhpp ocl-icd
|
|
|
|
];
|
|
|
|
|
|
|
|
fixupPhase = ''
|
|
|
|
substituteInPlace $out/bin/vglrun \
|
|
|
|
--replace "LD_PRELOAD=libvglfaker" "LD_PRELOAD=$out/lib/libvglfaker" \
|
|
|
|
--replace "LD_PRELOAD=libdlfaker" "LD_PRELOAD=$out/lib/libdlfaker" \
|
|
|
|
--replace "LD_PRELOAD=libgefaker" "LD_PRELOAD=$out/lib/libgefaker"
|
|
|
|
'';
|
2015-12-04 21:33:02 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +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";
|
2018-09-12 19:54:53 +00:00
|
|
|
license = licenses.wxWindows;
|
2015-12-04 21:33:02 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|