Hi, I am using NixOS 19.03.
The Atom editor has a spell checker. This is a core package (built-in package management) of the editor. When I start Atom, I get the following message.
The spell checker apparently uses hunspell dictionaries. For other Linux distributions, users are advised to install the correct hunspell dictionary. So, I installed hunspell and hunspellDicts.de-de via /etc/nixos/configuration.nix. I had already guessed that that wouldn’t work and I was not surprised when Atom still could not find the dictionary.
The hunspell command itself can’t find the dictionary:
> hunspell -D SEARCH PATH: .::/usr/share/hunspell:/usr/share/myspell:/usr/share/myspell/dicts:/Library/Spelling:/home/martin/.openoffice.org/3/user/wordbook:/home/martin/.openoffice.org2/user/wordbook:/home/martin/.openoffice.org2.0/user/wordbook:/home/martin/Library/Spelling:/opt/openoffice.org/basis3.0/share/dict/ooo:/usr/lib/openoffice.org/basis3.0/share/dict/ooo:/opt/openoffice.org2.4/share/dict/ooo:/usr/lib/openoffice.org2.4/share/dict/ooo:/opt/openoffice.org2.3/share/dict/ooo:/usr/lib/openoffice.org2.3/share/dict/ooo:/opt/openoffice.org2.2/share/dict/ooo:/usr/lib/openoffice.org2.2/share/dict/ooo:/opt/openoffice.org2.1/share/dict/ooo:/usr/lib/openoffice.org2.1/share/dict/ooo:/opt/openoffice.org2.0/share/dict/ooo:/usr/lib/openoffice.org2.0/share/dict/ooo AVAILABLE DICTIONARIES (path is not mandatory for -d option):
I suppose I could download the dictionary and put it into /home/martin/.openoffice.org/3/user/wordbook, for example. I then could point the Atom spell-checker to that directory. That should probably work. But if I wanted to download software and resources manually, I would use Windows . I hope there is a more idiomatic way that leverages Nix.
Could anyone point me in the general direction of a solution? Do I need to hack on the Nix expression for the atom package?