Revert "aspell: only set ASPELL_CONF from NIX_PROFILES in wrapper if unset"

This reverts commit 399065f226.

I am blind, this was already checked above. Thanks @bjornfor for noticing.
This commit is contained in:
Benno Fünfstück 2017-04-19 20:19:56 +02:00
parent 149656581d
commit 042e268612

View File

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