libvirt: add missing gettext in libvirt-guests.sh

Or else this is seen in the system log:

.../libexec/libvirt-guests.sh: line 211: gettext: command not found
This commit is contained in:
Bjørn Forsman 2017-07-13 21:24:55 +02:00
parent 9748e9ad86
commit 01ec484a47

View File

@ -74,6 +74,8 @@ stdenv.mkDerivation rec {
substituteInPlace $out/libexec/libvirt-guests.sh \
--replace "$out/bin" "${gettext}/bin" \
--replace "lock/subsys" "lock"
sed -e "/gettext\.sh/a \\\n# Added in nixpkgs:\ngettext() { \"${gettext}/bin/gettext\" \"\$@\"; }" \
-i "$out/libexec/libvirt-guests.sh"
'' + optionalString stdenv.isLinux ''
rm $out/lib/systemd/system/{virtlockd,virtlogd}.*
wrapProgram $out/sbin/libvirtd \