1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-27 08:01:14 +00:00

hunspell-dicts: add Dutch dictionary

This commit is contained in:
Artturin 2021-06-09 21:24:02 +03:00 committed by Jonathan Ringer
parent 0ae4fd5bc3
commit 82d5971ee8

View file

@ -9,6 +9,7 @@ let
stdenv.mkDerivation ({ stdenv.mkDerivation ({
inherit name; inherit name;
installPhase = '' installPhase = ''
runHook preInstall
# hunspell dicts # hunspell dicts
install -dm755 "$out/share/hunspell" install -dm755 "$out/share/hunspell"
install -m644 ${dictFileName}.dic "$out/share/hunspell/" install -m644 ${dictFileName}.dic "$out/share/hunspell/"
@ -785,6 +786,36 @@ in rec {
}; };
}; };
/* DUTCH */
nl_NL = nl_nl;
nl_nl = mkDict rec {
name = "hunspell-dict-nl-nl-${version}";
version = "2.20.19";
src = fetchFromGitHub {
owner = "OpenTaal";
repo = "opentaal-hunspell";
rev = version;
sha256 = "0jma8mmrncyzd77kxliyngs4z6z4769g3nh0a7xn2pd4s5y2xdpy";
};
preInstall = ''
mv nl.aff nl_NL.aff
mv nl.dic nl_NL.dic
'';
dictFileName = "nl_NL";
readmeFile = "README.md";
meta = with lib; {
description = "Hunspell dictionary for Dutch (Netherlands) from OpenTaal";
homepage = "https://www.opentaal.org/";
license = with licenses; [ bsd3 cc-by-nc-30 ];
maintainers = with maintainers; [ artturin ];
};
};
/* HEBREW */ /* HEBREW */
he_IL = he-il; he_IL = he-il;