Skip to content

Commit 01ec484

Browse files
committedJul 13, 2017
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
1 parent 9748e9a commit 01ec484

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎pkgs/development/libraries/libvirt/default.nix

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ stdenv.mkDerivation rec {
7474
substituteInPlace $out/libexec/libvirt-guests.sh \
7575
--replace "$out/bin" "${gettext}/bin" \
7676
--replace "lock/subsys" "lock"
77+
sed -e "/gettext\.sh/a \\\n# Added in nixpkgs:\ngettext() { \"${gettext}/bin/gettext\" \"\$@\"; }" \
78+
-i "$out/libexec/libvirt-guests.sh"
7779
'' + optionalString stdenv.isLinux ''
7880
rm $out/lib/systemd/system/{virtlockd,virtlogd}.*
7981
wrapProgram $out/sbin/libvirtd \

0 commit comments

Comments
 (0)
Please sign in to comment.