I use aspell to check my spelling, usually via Emacs. However aspell cannot find any dictionary.
Test on the command line
➜ ~ aspell -d en_GB check b.txt
Error: The file "/nix/store/5y928vcyzhd5sb0kmsv8xma62dix7ldn-aspell-0.60.8/lib/aspell/en_GB" can not be opened for reading.
➜ ~ ls /nix/store/5y928vcyzhd5sb0kmsv8xma62dix7ldn-aspell-0.60.8/lib/aspell/en*
zsh: no matches found: /nix/store/5y928vcyzhd5sb0kmsv8xma62dix7ldn-aspell-0.60.8/lib/aspell/en*
However specifying the language works:
~ aspell --lang=en_GB check b.txt
Using plocate
I can find the dictionary many times but in different Nix-Stores except in the one printed above:
➜ ~ plocate en_GB.multi
/nix/store/0yxkc5s9p704ngwg5jh2cwhm67yx6d63-system-path/lib/aspell/en_GB.multi
/nix/store/3vcfsjkk95gyc12zm1h7xsn9xanrggw6-system-path/lib/aspell/en_GB.multi
...
/nix/store/yazs8ww2knp87dqwlgvp4w7lj97dfbdk-system-path/lib/aspell/en_GB.multi
/nix/store/z4ld26r68yp71hv1x8k4yyr1sagkkdqw-system-path/lib/aspell/en_GB.multi
But since Emacs starts apsell with the option -d
I would need this to work.
Has anyone an idea what is going wrong?
Aspell Installation
I installed aspell using
environment.systemPackages = with pkgs;
[
abcde
appimage-run
aspell
aspellDicts.de
aspellDicts.en
aspellDicts.en-computers
aspellDicts.en-science
aspellDicts.es
aspellDicts.fr
aspellDicts.la
clang
...
]