qemu: add virgl renderer support

This commit is contained in:
Nikolay Amiantov 2018-03-17 19:14:52 +03:00
parent 1de04e45cb
commit e2d59e06bf

@ -13,6 +13,7 @@
, usbredirSupport ? spiceSupport, usbredir
, xenSupport ? false, xen
, openGLSupport ? true, mesa_noglu, epoxy, libdrm
, virglSupport ? true, virglrenderer
, hostCpuOnly ? false
, nixosTestRunner ? false
}:
@ -59,7 +60,8 @@ stdenv.mkDerivation rec {
++ optionals usbredirSupport [ usbredir ]
++ optionals stdenv.isLinux [ alsaLib libaio libcap_ng libcap attr ]
++ optionals xenSupport [ xen ]
++ optionals openGLSupport [ mesa_noglu epoxy libdrm ];
++ optionals openGLSupport [ mesa_noglu epoxy libdrm ]
++ optionals virglSupport [ virglrenderer ];
enableParallelBuilding = true;
@ -109,7 +111,8 @@ stdenv.mkDerivation rec {
++ optional stdenv.isDarwin "--enable-cocoa"
++ optional stdenv.isLinux "--enable-linux-aio"
++ optional xenSupport "--enable-xen"
++ optional openGLSupport "--enable-opengl";
++ optional openGLSupport "--enable-opengl"
++ optional virglSupport "--enable-virglrenderer";
postFixup =
''