aspell: only set ASPELL_CONF from NIX_PROFILES in wrapper if unset

This commit is contained in:
Benno Fünfstück 2017-04-19 17:14:51 +02:00
parent 792135a218
commit 399065f226

View File

@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
#! $SHELL -e
if [ -z "\$ASPELL_CONF" ]; then
for p in \$NIX_PROFILES; do
if [ -d "\$p/lib/aspell" ]; then
if [ -z "\$ASPELL_CONF" ] && [ -d "\$p/lib/aspell" ]; then
ASPELL_CONF="data-dir \$p/lib/aspell"
fi
done