gnu: libvirt: Wrap with iproute and qemu.

libvirtd runs qemu if it's configured to use it, and also uses the ip command.

* gnu/packages/virtualization.scm (libvirt)[arguments]: Add wrap-libvirtd
  phase.
This commit is contained in:
Christopher Baines 2017-08-19 20:07:47 +01:00
parent 0577a3fd92
commit 903e051a71
No known key found for this signature in database
GPG Key ID: 5E28A33B0B84F577
1 changed files with 10 additions and 1 deletions

View File

@ -361,7 +361,16 @@ manage system or application containers.")
(lambda _
(zero? (system* "make" "install"
"sysconfdir=/tmp/etc"
"localstatedir=/tmp/var")))))))
"localstatedir=/tmp/var"))))
(add-after 'install 'wrap-libvirtd
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(wrap-program (string-append out "/sbin/libvirtd")
`("PATH" = (,(string-append (assoc-ref inputs "iproute")
"/sbin")
,(string-append (assoc-ref inputs "qemu")
"/bin"))))
#t))))))
(inputs
`(("libxml2" ,libxml2)
("gnutls" ,gnutls)