mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
qemu: add OpenGL support
This commit is contained in:
parent
5f44faaca9
commit
1de04e45cb
1 changed files with 5 additions and 2 deletions
|
@ -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 =
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue