【发布时间】:2018-05-12 13:36:48
【问题描述】:
当我在 Mac OSX 上使用 Nix 将带有 Aspell 英语词典的 Aspell 包安装到我的全局环境中时:
$ nix-env -iA nixpkgs.aspell nixpkgs.aspellDicts.en
那么 Aspell 的行为与我预期的一样:
$ aspell dump dicts
en
en-variant_0
...
但是,如果我将软件包安装到 nix-shell 中,那么字典似乎没有正确安装:
$ nix-shell -p aspell aspellDicts.en --pure
$ aspell dump dicts
# nothing printed
$ echo 'word lister to check' | aspell --list
Error: No word lists can be found for the language "en_US".
以下每种变体都会产生相同的问题行为:
- 安装到非纯的 nix-shell 中,
- 将 nix 表达式放入 default.nix 文件并运行
nix-shell。 - 安装其他 Aspell 词典
谁能建议如何让它工作?
【问题讨论】: