qemu: add OpenGL support
This commit is contained in:
parent
5f44faaca9
commit
1de04e45cb
|
@ -12,6 +12,7 @@
|
||||||
, spiceSupport ? !stdenv.isDarwin, spice, spice-protocol
|
, spiceSupport ? !stdenv.isDarwin, spice, spice-protocol
|
||||||
, usbredirSupport ? spiceSupport, usbredir
|
, usbredirSupport ? spiceSupport, usbredir
|
||||||
, xenSupport ? false, xen
|
, xenSupport ? false, xen
|
||||||
|
, openGLSupport ? true, mesa_noglu, epoxy, libdrm
|
||||||
, hostCpuOnly ? false
|
, hostCpuOnly ? false
|
||||||
, nixosTestRunner ? false
|
, nixosTestRunner ? false
|
||||||
}:
|
}:
|
||||||
|
@ -57,7 +58,8 @@ stdenv.mkDerivation rec {
|
||||||
++ optionals spiceSupport [ spice-protocol spice ]
|
++ optionals spiceSupport [ spice-protocol spice ]
|
||||||
++ 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 ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
@ -106,7 +108,8 @@ stdenv.mkDerivation rec {
|
||||||
++ optional hostCpuOnly "--target-list=${hostCpuTargets}"
|
++ optional hostCpuOnly "--target-list=${hostCpuTargets}"
|
||||||
++ 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";
|
||||||
|
|
||||||
postFixup =
|
postFixup =
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue