1 { lib, stdenv, fetchgit }:
4 mkDictFromChromium = { shortName, dictFileName, shortDescription }:
6 pname = "hunspell-dict-${shortName}-chromium";
7 version = "115.0.5790.170";
10 url = "https://chromium.googlesource.com/chromium/deps/hunspell_dictionaries";
11 rev = "41cdffd71c9948f63c7ad36e1fb0ff519aa7a37e";
12 hash = "sha256-67mvpJRFFa9eMfyqFMURlbxOaTJBICnk+gl0b0mEHl8=";
18 cp ${dictFileName} $out
22 # As chromium needs the exact filename in ~/.config/chromium/Dictionaries,
23 # this value needs to be known to tools using the package if they want to
24 # link the file correctly.
27 updateScript = ./update-chromium-dictionaries.py;
31 homepage = "https://chromium.googlesource.com/chromium/deps/hunspell_dictionaries/";
32 description = "Chromium compatible hunspell dictionary for ${shortDescription}";
34 Humspell directories in Chromium's custom bdic format
36 See https://www.chromium.org/developers/how-tos/editing-the-spell-checking-dictionaries/
38 license = with lib.licenses; [ gpl2 lgpl21 mpl11 lgpl3 ];
39 maintainers = with lib.maintainers; [ networkexception ];
40 platforms = lib.platforms.all;
49 en-us = mkDictFromChromium {
51 dictFileName = "en-US-10-1.bdic";
52 shortDescription = "English (United States)";
56 en-gb = mkDictFromChromium {
58 dictFileName = "en-GB-10-1.bdic";
59 shortDescription = "English (United Kingdom)";
65 de-de = mkDictFromChromium {
67 dictFileName = "de-DE-3-0.bdic";
68 shortDescription = "German (Germany)";