I don’t have any packages in nixkpgs but found something that would be useful to add. There’s a Korean hunspell dictionary that was pretty easy to build.
The following hunks were used to construct a flake:
korean-hunspell-src = {
url = "github:spellcheck-ko/hunspell-dict-ko";
flake = false;
};
korean-hunspell = pkgs.stdenv.mkDerivation {
name = "ko";
src = korean-hunspell-src;
pname = "hunspell-dict-ko";
buildInputs = [
pkgs.python3
pkgs.python3.pkgs.pyaml
];
installPhase = ''
mkdir -p $out/share/hunspell
cp ko.aff $out/share/hunspell/ko.aff
cp ko.dic $out/share/hunspell/ko.dic
'';
};
I looked at the source for some spellcheck packages and realized most of them come from a fairly regular scheme that won’t be appropriate for the source I found. Presuming I was going to go from no experience to a first PR, what do I want to know?
Alternatively, these hunks are working, and I would appreciate someone picking up from here.