mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
libreoffice: fix #152506 - add explicit dependencies on grep and coreutils to wrapper
This commit is contained in:
parent
3f1e5d05de
commit
1e12026447
@ -1,9 +1,9 @@
|
||||
{ libreoffice, runCommand, dbus, bash }:
|
||||
{ libreoffice, runCommand, coreutils, gnugrep, dbus, bash }:
|
||||
let
|
||||
jdk = libreoffice.jdk;
|
||||
in
|
||||
(runCommand libreoffice.name {
|
||||
inherit dbus libreoffice jdk bash;
|
||||
inherit coreutils dbus gnugrep libreoffice jdk bash;
|
||||
} ''
|
||||
mkdir -p "$out/bin"
|
||||
ln -s "${libreoffice}/share" "$out/share"
|
||||
|
@ -2,7 +2,7 @@
|
||||
export JAVA_HOME="${JAVA_HOME:-@jdk@}"
|
||||
#export SAL_USE_VCLPLUGIN="${SAL_USE_VCLPLUGIN:-gen}"
|
||||
|
||||
if uname | grep Linux > /dev/null &&
|
||||
if "@coreutils@"/bin/uname | "@gnugrep@"/bin/grep Linux > /dev/null &&
|
||||
! ( test -n "$DBUS_SESSION_BUS_ADDRESS" ); then
|
||||
dbus_tmp_dir="/run/user/$(id -u)/libreoffice-dbus"
|
||||
if ! test -d "$dbus_tmp_dir" && test -d "/run"; then
|
||||
@ -25,7 +25,7 @@ for PROFILE in $NIX_PROFILES; do
|
||||
fi
|
||||
done
|
||||
|
||||
"@libreoffice@/bin/$(basename "$0")" "$@"
|
||||
"@libreoffice@/bin/$("@coreutils@"/bin/basename "$0")" "$@"
|
||||
code="$?"
|
||||
|
||||
test -n "$dbus_socket_dir" && { rm -rf "$dbus_socket_dir"; kill $dbus_pid; }
|
||||
|
Loading…
Reference in New Issue
Block a user