nixpkgs-suyu/pkgs/tools/X11/virtualgl/default.nix
Mateusz Kowalczyk 007f80c1d0 Turn more licenses into lib.licenses style
Should eval cleanly, as far as -A tarball tells me.

Relevant: issue #2999, issue #739
2014-11-06 00:48:16 +00:00

33 lines
906 B
Nix

{ stdenv, fetchurl, mesa, libX11, openssl, libXext
, libjpeg_turbo, cmake }:
let
version = "2.3.2";
in
stdenv.mkDerivation {
name = "virtualgl-${version}";
src = fetchurl {
url = "mirror://sourceforge/virtualgl/VirtualGL-${version}.tar.gz";
sha256 = "062lrhd8yr13ch4wpgzxdabqs92j4q7fcl3a0c3sdlav4arspqmy";
};
patches = [ ./xshm.patch ./fixturbopath.patch ];
prePatch = ''
sed -i s,LD_PRELOAD=lib,LD_PRELOAD=$out/lib/lib, server/vglrun
'';
cmakeFlags = [ "-DTJPEG_LIBRARY=${libjpeg_turbo}/lib/libturbojpeg.so" ];
preInstall = ''
export makeFlags="prefix=$out"
'';
buildInputs = [ cmake 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 = stdenv.lib.licenses.free; # many parts under different free licenses
};
}