aspell: only set ASPELL_CONF from NIX_PROFILES in wrapper if unset
This commit is contained in:
parent
792135a218
commit
399065f226
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user