|
|
|
@ -220,12 +220,12 @@ stdenv.mkDerivation rec { |
|
|
|
|
binPath = [ iptables iproute2 pmutils numad numactl bridge-utils dmidecode dnsmasq ] ++ optionals enableIscsi [ openiscsi ]; |
|
|
|
|
in |
|
|
|
|
'' |
|
|
|
|
substituteInPlace $out/libexec/libvirt-guests.sh \ |
|
|
|
|
--replace 'ON_BOOT="start"' 'ON_BOOT=''${ON_BOOT:-start}' \ |
|
|
|
|
--replace 'ON_SHUTDOWN="suspend"' 'ON_SHUTDOWN=''${ON_SHUTDOWN:-suspend}' \ |
|
|
|
|
--replace "$out/bin" '${gettext}/bin' \ |
|
|
|
|
--replace 'lock/subsys' 'lock' \ |
|
|
|
|
--replace 'gettext.sh' 'gettext.sh |
|
|
|
|
substituteInPlace $out/libexec/libvirt-guests.sh \ |
|
|
|
|
--replace 'ON_BOOT="start"' 'ON_BOOT=''${ON_BOOT:-start}' \ |
|
|
|
|
--replace 'ON_SHUTDOWN="suspend"' 'ON_SHUTDOWN=''${ON_SHUTDOWN:-suspend}' \ |
|
|
|
|
--replace "$out/bin" '${gettext}/bin' \ |
|
|
|
|
--replace 'lock/subsys' 'lock' \ |
|
|
|
|
--replace 'gettext.sh' 'gettext.sh |
|
|
|
|
# Added in nixpkgs: |
|
|
|
|
gettext() { "${gettext}/bin/gettext" "$@"; } |
|
|
|
|
' |
|
|
|
|