summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2017-12-08 18:51:10 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2018-02-10 00:37:44 +0300
commit28e3569f1f2640f814b358cd934c386ddb65def1 (patch)
tree89c11abcf10979f2c4acfc2fc09478ad0baaf609 /gnu
parentdc993847f1a2eed3c0e2b573ee7ad1974ffc3bd0 (diff)
downloadguix-28e3569f1f2640f814b358cd934c386ddb65def1.tar.gz
gnu: qemu: Add pulseaudio support.
* gnu/packages/virtualization.scm (qemu)[arguments]: Add --audio-drv-list
flag.
[inputs]: Add pulseaudio.
(qemu-minimal)[inputs]: Remove pulseaudio.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/virtualization.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index f4fd4c336a..d49cdc208a 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -52,6 +52,7 @@
   #:use-module (gnu packages protobuf)
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-web)
+  #:use-module (gnu packages pulseaudio)
   #:use-module (gnu packages selinux)
   #:use-module (gnu packages sdl)
   #:use-module (gnu packages spice)
@@ -99,7 +100,8 @@
        #:configure-flags (list "--enable-usb-redir" "--enable-opengl"
                                (string-append "--smbd="
                                               (assoc-ref %outputs "out")
-                                              "/libexec/samba-wrapper"))
+                                              "/libexec/samba-wrapper")
+                               "--audio-drv-list=alsa,pa,sdl")
        #:phases
        (modify-phases %standard-phases
          (replace 'configure
@@ -181,6 +183,7 @@ exec smbd $@")))
        ("ncurses" ,ncurses)
        ;; ("pciutils" ,pciutils)
        ("pixman" ,pixman)
+       ("pulseaudio" ,pulseaudio)
        ("sdl" ,sdl)
        ("spice" ,spice)
        ("usbredir" ,usbredir)
@@ -228,7 +231,7 @@ server and embedded PowerPC, and S390 guests.")
     ;; Remove dependencies on optional libraries, notably GUI libraries.
     (inputs (fold alist-delete (package-inputs qemu)
                   '("libusb" "mesa" "sdl" "spice" "virglrenderer"
-                    "usbredir" "libdrm" "libepoxy")))))
+                    "usbredir" "libdrm" "libepoxy" "pulseaudio")))))
 
 (define-public libosinfo
   (package