qemu: add OpenGL support

This commit is contained in:
Nikolay Amiantov 2018-03-18 05:27:01 +03:00
parent 5f44faaca9
commit 1de04e45cb

View file

@ -12,6 +12,7 @@
, spiceSupport ? !stdenv.isDarwin, spice, spice-protocol
, usbredirSupport ? spiceSupport, usbredir
, xenSupport ? false, xen
, openGLSupport ? true, mesa_noglu, epoxy, libdrm
, hostCpuOnly ? false
, nixosTestRunner ? false
}:
@ -57,7 +58,8 @@ stdenv.mkDerivation rec {
++ optionals spiceSupport [ spice-protocol spice ]
++ optionals usbredirSupport [ usbredir ]
++ optionals stdenv.isLinux [ alsaLib libaio libcap_ng libcap attr ]
++ optionals xenSupport [ xen ];
++ optionals xenSupport [ xen ]
++ optionals openGLSupport [ mesa_noglu epoxy libdrm ];
enableParallelBuilding = true;
@ -106,7 +108,8 @@ stdenv.mkDerivation rec {
++ optional hostCpuOnly "--target-list=${hostCpuTargets}"
++ optional stdenv.isDarwin "--enable-cocoa"
++ optional stdenv.isLinux "--enable-linux-aio"
++ optional xenSupport "--enable-xen";
++ optional xenSupport "--enable-xen"
++ optional openGLSupport "--enable-opengl";
postFixup =
''