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:
parent
9748e9ad86
commit
01ec484a47
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user