nixpkgs/pkgs/tools/X11/virtualgl/lib.nix

30 lines
909 B
Nix
Raw Normal View History

{ stdenv, fetchurl, cmake, mesa, libX11, libXv, libjpeg_turbo, fltk }:
2016-03-03 12:55:55 +00:00
stdenv.mkDerivation rec {
name = "virtualgl-lib-${version}";
2016-11-23 15:07:04 +00:00
version = "2.5.1";
src = fetchurl {
url = "mirror://sourceforge/virtualgl/VirtualGL-${version}.tar.gz";
2016-11-23 15:07:04 +00:00
sha256 = "0n9ngwji9k0hqy81ridndf7z4lwq5dzmqw66r6vxfz15aw0jwd6s";
};
cmakeFlags = [ "-DVGL_SYSTEMFLTK=1" "-DTJPEG_LIBRARY=${libjpeg_turbo.out}/lib/libturbojpeg.so" ];
makeFlags = [ "PREFIX=$(out)" ];
nativeBuildInputs = [ cmake ];
buildInputs = [ libjpeg_turbo mesa fltk libX11 libXv ];
2016-03-03 12:55:55 +00:00
enableParallelBuilding = true;
meta = with stdenv.lib; {
homepage = "http://www.virtualgl.org/";
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 ];
};
}