gnu: qemu: Add dependency on Samba.
* gnu/packages/qemu.scm (qemu-kvm): Add dependency on Samba; pass `--smbd' to ./configure.
This commit is contained in:
		
							parent
							
								
									3665b4dc60
								
							
						
					
					
						commit
						ffb1ee524d
					
				
					 1 changed files with 8 additions and 3 deletions
				
			
		|  | @ -32,6 +32,7 @@ | ||||||
|   #:use-module (gnu packages libjpeg) |   #:use-module (gnu packages libjpeg) | ||||||
|   #:use-module (gnu packages attr) |   #:use-module (gnu packages attr) | ||||||
|   #:use-module (gnu packages linux) |   #:use-module (gnu packages linux) | ||||||
|  |   #:use-module (gnu packages samba) | ||||||
|   #:use-module (gnu packages perl)) |   #:use-module (gnu packages perl)) | ||||||
| 
 | 
 | ||||||
| (define-public qemu-kvm | (define-public qemu-kvm | ||||||
|  | @ -52,14 +53,17 @@ | ||||||
|                  (lambda* (#:key inputs outputs #:allow-other-keys) |                  (lambda* (#:key inputs outputs #:allow-other-keys) | ||||||
|                    ;; The `configure' script doesn't understand some of the |                    ;; The `configure' script doesn't understand some of the | ||||||
|                    ;; GNU options.  Thus, add a new phase that's compatible. |                    ;; GNU options.  Thus, add a new phase that's compatible. | ||||||
|                    (let ((out (assoc-ref outputs "out"))) |                    (let ((out   (assoc-ref outputs "out")) | ||||||
|  |                          (samba (assoc-ref inputs "samba"))) | ||||||
|                      (setenv "SHELL" (which "bash")) |                      (setenv "SHELL" (which "bash")) | ||||||
| 
 | 
 | ||||||
|                      ;; The binaries need to be linked against -lrt. |                      ;; The binaries need to be linked against -lrt. | ||||||
|                      (setenv "LDFLAGS" "-lrt") |                      (setenv "LDFLAGS" "-lrt") | ||||||
|                      (zero? |                      (zero? | ||||||
|                       (system* "./configure" |                       (system* "./configure" | ||||||
|                                (string-append "--prefix=" out))))) |                                (string-append "--prefix=" out) | ||||||
|  |                                (string-append "--smbd=" samba | ||||||
|  |                                               "/sbin/smbd"))))) | ||||||
|                  %standard-phases))) |                  %standard-phases))) | ||||||
|     (inputs                                       ; TODO: Add optional inputs. |     (inputs                                       ; TODO: Add optional inputs. | ||||||
|      `(;; ("mesa" ,mesa) |      `(;; ("mesa" ,mesa) | ||||||
|  | @ -76,7 +80,8 @@ | ||||||
|        ;; ("alsa-lib" ,alsa-lib) |        ;; ("alsa-lib" ,alsa-lib) | ||||||
|        ;; ("SDL" ,SDL) |        ;; ("SDL" ,SDL) | ||||||
|        ("zlib" ,zlib) |        ("zlib" ,zlib) | ||||||
|        ("attr" ,attr))) |        ("attr" ,attr) | ||||||
|  |        ("samba" ,samba)))                         ; an optional dependency | ||||||
|     (home-page "http://www.linux-kvm.org/") |     (home-page "http://www.linux-kvm.org/") | ||||||
|     (synopsis |     (synopsis | ||||||
|      "Virtualization for Linux on x86 hardware containing virtualization extensions") |      "Virtualization for Linux on x86 hardware containing virtualization extensions") | ||||||
|  |  | ||||||
		Reference in a new issue