libvirt: Fix virt-xml-validate

Previously it depended on `xmllint` being in $PATH.
This commit is contained in:
Andrew Marshall 2022-02-11 19:52:04 -05:00 committed by Bjørn Forsman
parent 3f8ceb8de0
commit c0e1ba80f5

View File

@ -220,6 +220,9 @@ stdenv.mkDerivation rec {
binPath = [ iptables iproute2 pmutils numad numactl bridge-utils dmidecode dnsmasq ] ++ optionals enableIscsi [ openiscsi ];
in
''
substituteInPlace $out/bin/virt-xml-validate \
--replace xmllint ${libxml2}/bin/xmllint
substituteInPlace $out/libexec/libvirt-guests.sh \
--replace 'ON_BOOT="start"' 'ON_BOOT=''${ON_BOOT:-start}' \
--replace 'ON_SHUTDOWN="suspend"' 'ON_SHUTDOWN=''${ON_SHUTDOWN:-suspend}' \