libreoffice: Load Hyphen dictionaries

This commit is contained in:
Marco "Capypara" Köpcke
2024-07-07 17:42:21 +02:00
committed by Florian Brandes
parent 1705fc1e47
commit 4e5190a38b

View File

@@ -50,9 +50,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
'')