mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
/etc/profile: try all nix profiles for ASPELL_CONF
Aspell can only handle one dict-dir directive and currently we hardocde that to ASPELL_CONF="dict-dir $HOME/.nix-profile/lib/aspell" This means that aspell doesn't work if it is installed to the system or default nix profile -- it only works in the user profile. With this change, aspell can be installed to any of the nix profiles. If it is installed in more than one profile, the most "local" profile wins (i.e. sysadmin can set up a default, users can override it).
This commit is contained in:
parent
3a1024478a
commit
0192c02720
@ -56,10 +56,12 @@ for i in $NIX_PROFILES; do # !!! reverse
|
||||
|
||||
# Mozilla plugins.
|
||||
export MOZ_PLUGIN_PATH=$i/lib/mozilla/plugins${MOZ_PLUGIN_PATH:+:}$MOZ_PLUGIN_PATH
|
||||
done
|
||||
|
||||
# Search directory for Aspell dictionaries.
|
||||
export ASPELL_CONF="dict-dir $HOME/.nix-profile/lib/aspell"
|
||||
# Search directory for Aspell dictionaries.
|
||||
if [ -d "$i/lib/aspell" ]; then
|
||||
export ASPELL_CONF="dict-dir $i/lib/aspell"
|
||||
fi
|
||||
done
|
||||
|
||||
# The setuid wrappers override other bin directories.
|
||||
export PATH=@wrapperDir@:$PATH
|
||||
|
Loading…
Reference in New Issue
Block a user