mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
qemu: add OpenGL support
This commit is contained in:
parent
5f44faaca9
commit
1de04e45cb
@ -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 New Issue
Block a user