2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, meson, ninja, pkg-config, python3
|
2020-04-24 23:36:52 +00:00
|
|
|
, libGLU, epoxy, libX11, libdrm, mesa
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "virglrenderer";
|
|
|
|
version = "0.8.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/virglrenderer-${version}/virglrenderer-virglrenderer-${version}.tar.bz2";
|
|
|
|
sha256 = "07vfzg99wq92yg2phza9jc0zvps34yy9gc8v4hibqchdl77fmspx";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libGLU epoxy libX11 libdrm mesa ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake meson ninja pkg-config python3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A virtual 3D GPU library that allows a qemu guest to use the host GPU for accelerated 3D rendering";
|
|
|
|
homepage = "https://virgil3d.github.io/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.xeji ];
|
|
|
|
};
|
|
|
|
}
|