Jinx not finding installed libraries on NixOS #173
-
Hi, first of all thank you for the great work, I have been using and very much enjoying jinx for quite some time. However, I have recently started using NixOS, and I cannot get jinx working on there. I don't really know what's wrong, as it seems to work for other people, but for some reason, during startup, I get the following message:
I am using the
I could also check, installing the
However, it seems that jinx does not see these dictionaries, as when I evaluate The package seems to be working for everyone else, so I must be doing something wrong, but I don't know what. Any help for debugging the situation would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I was facing the same issue. Enchant is usingt the aspell package directly and not the wrapper created by I fixed it by just setting:
|
Beta Was this translation helpful? Give feedback.
-
I fixed it by not using aspell; nuspell seems to work much better without any configuration, probably hunspell would be the same (they both use hunspell dictionaries). I didn't even need to use The Enchant docs make it sound like nuspell and hunspell are more modern than aspell. Add to with pkgs.hunspellDicts; [
# whatever
] Dictionary packages are in <nixpkgs/pkgs/development/libraries/hunspell/dictionaries.nix> Currently I have this in an overlay: enchant =
let
file = builtins.fetchurl {
url = "https://raw.githubusercontent.com/alanpearce/nixpkgs/7ee75d6aa9b088922b47b69c1912b2afe000ae52/pkgs/development/libraries/enchant/2.x.nix";
sha256 = "1y7h3fvp7ghcfb5v3h6riiv7z2bzgnxm0p696bbhfb0gwwv9q8aw";
};
in
super.callPackage file {
withHspell = false;
withAspell = false;
inherit (super.darwin.apple_sdk.frameworks) Cocoa;
}; This will also enable AppleSpell on Darwin. After NixOS/nixpkgs#310613 lands (track PR), this overlay can be reduced to |
Beta Was this translation helpful? Give feedback.
I fixed it by not using aspell; nuspell seems to work much better without any configuration, probably hunspell would be the same (they both use hunspell dictionaries). I didn't even need to use
nuspellWithDicts
. This is important (for me) because I was running into the issue where opening Emacs from the desktop environment (either Plasma6 or macOS) wouldn't load dictionaries, but if I launched it from a shell, it would (due to theASPELL_CONF
variable)The Enchant docs make it sound like nuspell and hunspell are more modern than aspell.
Add to
home.packages
orenvironment.systemPackages
:Dictionary packages are in <nixpkgs/pkgs/development/librari…