mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
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:
parent
0577a3fd92
commit
903e051a71
1 changed files with 10 additions and 1 deletions
|
@ -361,7 +361,16 @@ (define-public libvirt
|
|||
(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)
|
||||
|
|
Loading…
Reference in a new issue