From 1de04e45cb489a6f69dfa5d0452dc8a87b7b7679 Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Sun, 18 Mar 2018 05:27:01 +0300 Subject: [PATCH] qemu: add OpenGL support --- pkgs/applications/virtualization/qemu/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/virtualization/qemu/default.nix b/pkgs/applications/virtualization/qemu/default.nix index f84016d4a9a6..833e7c8c789b 100644 --- a/pkgs/applications/virtualization/qemu/default.nix +++ b/pkgs/applications/virtualization/qemu/default.nix @@ -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 = ''