qemu: add virgl renderer support

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

View File

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