1 { lib, stdenv, fetchurl, meson, ninja, pkg-config, python3
2 , libGLU, libepoxy, libX11, libdrm, mesa
3 , vaapiSupport ? true, libva
7 stdenv.mkDerivation rec {
8 pname = "virglrenderer";
12 url = "https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/${version}/virglrenderer-${version}.tar.bz2";
13 hash = "sha256-XGgKst7ENLKCUv0jU/HiEtTYe+7b9sHnSufj0PZVsb0=";
16 separateDebugInfo = true;
18 buildInputs = [ libGLU libepoxy libX11 libdrm mesa ]
19 ++ lib.optionals vaapiSupport [ libva ];
21 nativeBuildInputs = [ meson ninja pkg-config python3 ];
24 (lib.mesonBool "video" vaapiSupport)
28 updateScript = gitUpdater {
29 url = "https://gitlab.freedesktop.org/virgl/virglrenderer.git";
30 rev-prefix = "virglrenderer-";
35 description = "Virtual 3D GPU library that allows a qemu guest to use the host GPU for accelerated 3D rendering";
36 mainProgram = "virgl_test_server";
37 homepage = "https://virgil3d.github.io/";
38 license = licenses.mit;
39 platforms = platforms.linux;
40 maintainers = [ maintainers.xeji ];