about summary refs log tree commit diff
path: root/pkgs/applications/office/libreoffice/wrapper.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/office/libreoffice/wrapper.nix')
-rw-r--r--pkgs/applications/office/libreoffice/wrapper.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/applications/office/libreoffice/wrapper.nix b/pkgs/applications/office/libreoffice/wrapper.nix
index 013a2ee5575ef..d2e62f8e5c74c 100644
--- a/pkgs/applications/office/libreoffice/wrapper.nix
+++ b/pkgs/applications/office/libreoffice/wrapper.nix
@@ -5,7 +5,6 @@
 , makeWrapper
 , xorg # for lndir
 , runCommand
-, substituteAll
 # For Emulating wrapGAppsHook3
 , gsettings-desktop-schemas
 , hicolor-icon-theme
@@ -50,9 +49,13 @@ let
     # Add dictionaries from all NIX_PROFILES
     "--run" (lib.escapeShellArg ''
       for PROFILE in $NIX_PROFILES; do
-          HDIR="$PROFILE/share/hunspell"
-          if [ -d "$HDIR" ]; then
-              export DICPATH=$DICPATH''${DICPATH:+:}$HDIR
+          HU_DIR="$PROFILE/share/hunspell"
+          HY_DIR="$PROFILE/share/hyphen"
+          if [ -d "$HU_DIR" ]; then
+              export DICPATH=$DICPATH''${DICPATH:+:}$HU_DIR
+          fi
+          if [ -d "$HY_DIR" ]; then
+              export DICPATH=$DICPATH''${DICPATH:+:}$HY_DIR
           fi
       done
     '')