1 {lib, stdenv, fetchurl, aspell, which, writeScript}:
5 * Add some of these to your profile or systemPackages.
8 environment.systemPackages = [
11 aspellDicts.en-computers
12 aspellDicts.en-science
16 * Rebuild and switch to the new profile.
21 extra-dicts en-computers.rws
22 add-extra-dicts en_US-science.rws
25 to `/etc/aspell.conf` or `~/.aspell.conf`.
26 * Check that `aspell -a` starts without errors.
27 * (optional) Check your config with `aspell dump config | grep -vE '^(#|$)'`.
34 /* Function to compile an Aspell dictionary. Fortunately, they all
35 build in the exact same way. */
37 {shortName, fullName, ...}@args:
39 stdenv.mkDerivation ({
40 name = "aspell-dict-${shortName}";
44 nativeBuildInputs = [ aspell which ];
48 configurePlatforms = [ ];
50 preBuild = "makeFlagsArray=(dictdir=$out/lib/aspell datadir=$out/lib/aspell)";
53 description = "Aspell dictionary for ${fullName}";
54 platforms = lib.platforms.all;
55 } // (args.meta or {});
56 } // removeAttrs args [ "meta" ]);
60 {language, version, filename, fullName, sha256, ...}@args:
62 shortName = "${language}-${version}";
65 url = "mirror://gnu/aspell/dict/${language}/${filename}-${language}-${version}.tar.bz2";
69 /* Remove any instances of u-deva.cmap and u-deva.cset since
70 they are included in the main aspell package and can
71 cause conflicts otherwise. */
73 rm -f $out/lib/aspell/u-deva.{cmap,cset}
76 passthru.updateScript = writeScript "update-aspellDict-${language}" ''
77 #!/usr/bin/env nix-shell
78 #!nix-shell -i bash -p nix curl gnused common-updater-scripts
81 # List tarballs in the dictionary's subdirectory via HTTPS and
82 # the simple list method of Apache's mod_autoindex.
84 # Catalan dictionary has an exception where an earlier version
85 # compares as newer because the versioning scheme has changed.
88 curl -s 'https://ftp.gnu.org/gnu/aspell/dict/${language}/?F=0' | \
89 sed -r 's/.* href="${filename}-${language}-([A-Za-z0-9_+.-]+)\.tar\.bz2".*/"\1"/;t;d' | \
90 if [ '${language}' = "ca" ]; then grep -v 20040130-1; else cat; fi; \
93 # Sort versions in descending order using Nix's and take the first as the latest.
94 sortVersions="(with builtins; head (sort (a: b: compareVersions a b > 0) $versions))"
95 # nix-instantiate outputs Nix strings (with quotes), so remove them to get
96 # a result similar to `nix eval --raw`.
97 latestVersion=$(nix-instantiate --eval --expr "$sortVersions" | tr -d '"')
99 update-source-version aspellDicts.${language} "$latestVersion"
103 homepage = "http://ftp.gnu.org/gnu/aspell/dict/0index.html";
104 } // (args.meta or {});
106 } // lib.optionalAttrs (lib.elem language [ "is" "nb" ]) {
107 # These have Windows-1251 encoded non-ASCII characters,
108 # so need some special handling.
112 tar -xf $src --strip-components=1 || true
117 postPatch = lib.getAttr language {
119 cp icelandic.alias íslenska.alias
120 sed -i 's/ .slenska\.alias/ íslenska.alias/g' Makefile.pre
123 cp bokmal.alias bokmål.alias
124 sed -i 's/ bokm.l\.alias/ bokmål.alias/g' Makefile.pre
127 } // removeAttrs args [ "language" "filename" "sha256" "meta" ];
128 in buildDict buildArgs;
130 /* Function to compile txt dict files into Aspell dictionaries. */
132 {langInputs ? [], ...}@args:
134 propagatedUserEnvPackages = langInputs;
137 # Aspell can't handle multiple data-dirs
138 # Copy everything we might possibly need
139 ${lib.concatMapStringsSep "\n" (p: ''
140 cp -a ${p}/lib/aspell/* .
141 '') ([ aspell ] ++ langInputs)}
142 export ASPELL_CONF="data-dir $(pwd)"
147 echo building $target
148 aspell create "$@" master ./$target.rws
152 awk -F'\t' '{print $1}' | sort | uniq
162 # Hack: drop comments and words with affixes
171 install -d $out/lib/aspell
174 install -t $out/lib/aspell $a.rws
186 af = buildOfficialDict {
189 fullName = "Afrikaans";
191 sha256 = "00p6k2ndi0gzfr5fkbvx4hkcpj223pidjvmxg0r384arrap00q4x";
192 meta.license = lib.licenses.lgpl21Only;
195 am = buildOfficialDict {
198 fullName = "Amharic";
199 filename = "aspell6";
200 sha256 = "11ylp7gjq94wfacyawvp391lsq26rl1b84f268rjn7l7z0hxs9xz";
201 meta.license = lib.licenses.publicDomain;
204 ar = buildOfficialDict {
208 filename = "aspell6";
209 sha256 = "1avw40bp8yi5bnkq64ihm2rldgw34lk89yz281q9bmndh95a47h4";
210 meta.license = lib.licenses.gpl2Only;
213 ast = buildOfficialDict {
216 fullName = "Asturian";
217 filename = "aspell6";
218 sha256 = "14hg85mxcyvdigf96yvslk7f3v9ngdsxn85qpgwkg31k3k83xwj3";
219 meta.license = lib.licenses.gpl2Only;
222 az = buildOfficialDict {
225 fullName = "Azerbaijani";
226 filename = "aspell6";
227 sha256 = "1hs4h1jscpxf9f9iyk6mvjqsnhkf0yslkbjhjkasqqcx8pn7cc86";
228 meta.license = lib.licenses.gpl2Only;
231 be = buildOfficialDict {
234 fullName = "Belarusian";
235 filename = "aspell5";
236 sha256 = "1svls9p7rsfi3hs0afh0cssj006qb4v1ik2yzqgj8hm10c6as2sm";
237 meta.license = lib.licenses.gpl2Only;
240 bg = buildOfficialDict {
243 fullName = "Bulgarian";
244 filename = "aspell6";
245 sha256 = "1alacmgpfk0yrgq83y23d16fhav1bxmb98kg8d2a5r9bvh2h0mvl";
246 meta.license = lib.licenses.gpl2Only;
249 bn = buildOfficialDict {
251 version = "0.01.1-1";
252 fullName = "Bengali";
253 filename = "aspell6";
254 sha256 = "1nc02jd67iggirwxnhdvlvaqm0xfyks35c4psszzj3dhzv29qgxh";
255 meta.license = lib.licenses.gpl2Only;
258 br = buildOfficialDict {
263 sha256 = "0fradnm8424bkq9a9zhpl2132dk7y95xmw45sy1c0lx6rinjl4n2";
264 meta.license = lib.licenses.gpl2Only;
267 ca = buildOfficialDict {
270 fullName = "Catalan";
271 filename = "aspell6";
272 sha256 = "1fb5y5kgvk25nlsfvc8cai978hg66x3pbp9py56pldc7vxzf9npb";
273 meta.license = lib.licenses.gpl2Only;
276 cs = buildOfficialDict {
278 version = "20040614-1";
280 filename = "aspell6";
281 sha256 = "0rihj4hsw96pd9casvmpvw3r8040pfa28p1h73x4vyn20zwr3h01";
282 meta.license = lib.licenses.gpl2Only;
285 csb = buildOfficialDict {
288 fullName = "Kashubian";
289 filename = "aspell6";
290 sha256 = "1612ypkm684wjvc7n081i87mlrrzif9simc7kyn177hfsl3ssrn1";
291 meta.license = lib.licenses.gpl2Only;
294 cy = buildOfficialDict {
299 sha256 = "15vq601lzz1gi311xym4bv9lv1k21xcfn50jmzamw7h6f36rsffm";
300 meta.license = lib.licenses.gpl2Only;
303 da = buildOfficialDict {
305 version = "1.4.42-1";
307 filename = "aspell5";
308 sha256 = "1hfkmiyhgrx5lgrb2mffjbdn1hivrm73wcg7x0iid74p2yb0fjpp";
309 meta.license = lib.licenses.gpl2Only;
312 de = buildOfficialDict {
314 version = "20161207-7-0";
316 filename = "aspell6";
317 sha256 = "0wamclvp66xfmv5wff96v6gdlnfv4y8lx3f8wvxyzm5imwgms4n2";
318 meta.license = lib.licenses.gpl2Plus;
321 de-alt = buildOfficialDict {
324 fullName = "German - Old Spelling";
325 filename = "aspell6";
326 sha256 = "0wwc2l29svv3fv041fh6vfa5m3hi9q9pkbxibzq1ysrsfin3rl9n";
327 meta.license = lib.licenses.gpl2Only;
330 el = buildOfficialDict {
334 filename = "aspell6";
335 sha256 = "1ljcc30zg2v2h3w5h5jr5im41mw8jbsgvvhdd2cii2yzi8d0zxja";
336 meta.license = lib.licenses.gpl2Only;
339 en = buildOfficialDict {
341 version = "2020.12.07-0";
342 fullName = "English";
343 filename = "aspell6";
344 sha256 = "1cwzqkm8gr1w51rpckwlvb43sb0b5nbwy7s8ns5vi250515773sc";
345 # some parts are under a custom free license others are just stated to be"public domain"
346 # see the Copyright file in the source for further information
347 meta.license = with lib.licenses; [
354 eo = buildOfficialDict {
356 version = "2.1.20000225a-2";
357 fullName = "Esperanto";
358 filename = "aspell6";
359 sha256 = "09vf0mbiicbmyb4bwb7v7lgpabnylg0wy7m3hlhl5rjdda6x3lj1";
360 meta.license = lib.licenses.gpl2Only;
363 es = buildOfficialDict {
366 fullName = "Spanish";
367 filename = "aspell6";
368 sha256 = "1k5g328ac1hdpp6fsg57d8md6i0aqcwlszp3gbmp5706wyhpydmd";
369 meta.license = lib.licenses.gpl2Only;
372 et = buildOfficialDict {
374 version = "0.1.21-1";
375 fullName = "Estonian";
376 filename = "aspell6";
377 sha256 = "0jdjfa2fskirhnb70fy86xryp9r6gkl729ib8qcjmsma7nm5gs5i";
378 meta.license = lib.licenses.lgpl21Only;
381 fa = buildOfficialDict {
384 fullName = "Persian";
385 filename = "aspell6";
386 sha256 = "0nz1ybwv56q7nl9ip12hfmdch1vyyq2j55bkjcns13lshzm2cba8";
387 meta.license = lib.licenses.gpl2Only;
390 fi = buildOfficialDict {
393 fullName = "Finnish";
394 filename = "aspell6";
395 sha256 = "07d5s08ba4dd89cmwy9icc01i6fjdykxlb9ravmhdrhi8mxz1mzq";
396 meta.license = lib.licenses.gpl2Only;
399 fo = buildOfficialDict {
401 version = "0.2.16-1";
402 fullName = "Faroese";
403 filename = "aspell5";
404 sha256 = "022yz5lll20xrzizcyb7wksm3fgwklnvgnir5la5qkxv770dvq7p";
405 meta.license = lib.licenses.gpl2Only;
408 fr = buildOfficialDict {
413 sha256 = "14ffy9mn5jqqpp437kannc3559bfdrpk7r36ljkzjalxa53i0hpr";
414 meta.license = lib.licenses.gpl2Only;
417 fy = buildOfficialDict {
420 fullName = "Frisian";
421 filename = "aspell6";
422 sha256 = "1almi6n4ni91d0rzrk8ig0473m9ypbwqmg56hchz76j51slwyirl";
423 meta.license = lib.licenses.gpl2Only;
426 ga = buildOfficialDict {
430 filename = "aspell5";
431 sha256 = "0y869mmvfb3bzadfgajwa2rfb0xfhi6m9ydwgxkb9v2claydnps5";
432 meta.license = lib.licenses.gpl2Only;
435 gd = buildOfficialDict {
438 fullName = "Scottish Gaelic";
439 filename = "aspell5";
440 sha256 = "0a89irv5d65j5m9sb0k36851x5rs0wij12gb2m6hv2nsfn5a05p3";
441 meta.license = lib.licenses.gpl2Only;
444 gl = buildOfficialDict {
447 fullName = "Galician";
448 filename = "aspell6";
449 sha256 = "12pwghmy18fcdvf9hvhb4q6shi339hb1kwxpkz0bhw0yjxjwzkdk";
450 meta.license = lib.licenses.gpl2Only;
453 grc = buildOfficialDict {
456 fullName = "Ancient Greek";
457 filename = "aspell6";
458 sha256 = "1zxr8958v37v260fkqd4pg37ns5h5kyqm54hn1hg70wq5cz8h512";
459 meta.license = lib.licenses.gpl3Only;
462 gu = buildOfficialDict {
465 fullName = "Gujarati";
466 filename = "aspell6";
467 sha256 = "04c38jnl74lpj2jhjz4zpqbs2623vwc71m6wc5h4b1karid14b23";
468 meta.license = lib.licenses.gpl2Only;
471 gv = buildOfficialDict {
474 fullName = "Manx Gaelic";
476 sha256 = "1rknf4yaw9s29c77sdzg98nhnmjwpicdb69igmz1n768npz2drmv";
477 meta.license = lib.licenses.gpl2Only;
480 he = buildOfficialDict {
484 filename = "aspell6";
485 sha256 = "13bhbghx5b8g0119g3wxd4n8mlf707y41vlf59irxjj0kynankfn";
486 meta.license = lib.licenses.gpl2Only;
489 hi = buildOfficialDict {
493 filename = "aspell6";
494 sha256 = "0drs374qz4419zx1lf2k281ydxf2750jk5ailafj1x0ncz27h1ys";
495 meta.license = lib.licenses.gpl2Only;
498 hil = buildOfficialDict {
501 fullName = "Hiligaynon";
502 filename = "aspell5";
503 sha256 = "1s482fsfhzic9qa80al4418q3ni3gfn2bkwkd2y46ydrs17kf2jp";
504 meta.license = lib.licenses.gpl2Only;
507 hr = buildOfficialDict {
510 fullName = "Croatian";
512 sha256 = "09aafyf1vqhaxvcf3jfzf365k394b5pf0iivsr2ix5npah1h7i1a";
513 meta.license = lib.licenses.lgpl21Only;
516 hsb = buildOfficialDict {
519 fullName = "Upper Sorbian";
520 filename = "aspell6";
521 sha256 = "0bi2vhz7n1vmg43wbbh935pmzihv80iyz9z65j94lxf753j2m7wd";
522 meta.license = lib.licenses.gpl2Only;
525 hu = buildOfficialDict {
527 version = "0.99.4.2-0";
528 fullName = "Hungarian";
529 filename = "aspell6";
530 sha256 = "1d9nybip2k1dz69zly3iv0npbi3yxgfznh1py364nxzrbjsafd9k";
531 meta.license = lib.licenses.gpl2Only;
534 hus = buildOfficialDict {
537 fullName = "Huastec";
538 filename = "aspell6";
539 sha256 = "09glipfpkz9xch17z11zw1yn2z7jx1f2svfmjn9l6wm1s5qz6a3d";
540 meta.license = lib.licenses.gpl3Only;
543 hy = buildOfficialDict {
545 version = "0.10.0-0";
546 fullName = "Armenian";
547 filename = "aspell6";
548 sha256 = "1w5wq8lfl2xp1nid30b1j5qmya4vjyidq0vpr4y3gf53jc08vsid";
549 meta.license = lib.licenses.gpl2Only;
552 ia = buildOfficialDict {
555 fullName = "Interlingua";
557 sha256 = "0bqcpgsa72pga24fv4fkw38b4qqdvqsw97jvzvw7q03dc1cwp5sp";
558 meta.license = lib.licenses.lgpl21Only;
561 id = buildOfficialDict {
564 fullName = "Indonesian";
565 filename = "aspell5";
566 sha256 = "023knfg0q03f7y5w6xnwa1kspnrcvcnky8xvdms93n2850414faj";
567 meta.license = lib.licenses.gpl2Only;
570 is = buildOfficialDict {
572 version = "0.51.1-0";
573 fullName = "Icelandic";
575 sha256 = "1mp3248lhbr13cj7iq9zs7h5ix0dcwlprp5cwrkcwafrv8lvsd9h";
576 meta.license = lib.licenses.gpl2Only;
579 it = buildOfficialDict {
581 version = "2.2_20050523-0";
582 fullName = "Italian";
583 filename = "aspell6";
584 sha256 = "1gdf7bc1a0kmxsmphdqq8pl01h667mjsj6hihy6kqy14k5qdq69v";
585 meta.license = lib.licenses.gpl2Plus;
588 kn = buildOfficialDict {
591 fullName = "Kannada";
592 filename = "aspell6";
593 sha256 = "10sk0wx4x4ds1403kf9dqxv9yjvh06w8qqf4agx57y0jlws0n0fb";
594 meta.license = lib.licenses.gpl3Only;
597 ku = buildOfficialDict {
601 filename = "aspell5";
602 sha256 = "09va98krfbgdaxl101nmd85j3ysqgg88qgfcl42c07crii0pd3wn";
603 meta.license = lib.licenses.gpl2Only;
606 ky = buildOfficialDict {
609 fullName = "Kirghiz";
610 filename = "aspell6";
611 sha256 = "0kzv2syjnnn6pnwx0d578n46hg2l0j62977al47y6wabnhjjy3z1";
612 meta.license = lib.licenses.gpl2Only;
615 la = buildOfficialDict {
617 version = "20020503-0";
619 filename = "aspell6";
620 sha256 = "1199inwi16dznzl087v4skn66fl7h555hi2palx6s1f3s54b11nl";
621 meta.license = lib.licenses.gpl2Only;
624 lt = buildOfficialDict {
627 fullName = "Lithuanian";
628 filename = "aspell6";
629 sha256 = "1asjck911l96q26zj36lmz0jp4b6pivvrf3h38zgc8lc85p3pxgn";
630 meta.license = lib.licenses.bsd3;
633 lv = buildOfficialDict {
636 fullName = "Latvian";
637 filename = "aspell6";
638 sha256 = "12pvs584a6437ijndggdqpp5s7d0w607cimpkxsjwasnx83f4c1w";
639 meta.license = lib.licenses.gpl2Only;
642 mg = buildOfficialDict {
645 fullName = "Malagasy";
646 filename = "aspell5";
647 sha256 = "0hdhbk9b5immjp8l5h4cy82gwgsqzcqbb0qsf7syw333w4rgi0ji";
648 meta.license = lib.licenses.gpl2Only;
651 mi = buildOfficialDict {
656 sha256 = "12bxplpd348yx8d2q8qvahi9dlp7qf28qmanzhziwc7np8rixvmy";
657 meta.license = lib.licenses.lgpl21Only;
660 mk = buildOfficialDict {
663 fullName = "Macedonian";
665 sha256 = "0wcr9n882xi5b7a7ln1hnhq4vfqd5gpqqp87v01j0gb7zf027z0m";
666 meta.license = lib.licenses.gpl2Only;
669 ml = buildOfficialDict {
672 fullName = "Malayalam";
673 filename = "aspell6";
674 sha256 = "1zcn4114gwia085fkz77qk13z29xrbp53q2qvgj2cvcbalg5bkg4";
675 meta.license = lib.licenses.gpl3Only;
678 mn = buildOfficialDict {
681 fullName = "Mongolian";
682 filename = "aspell6";
683 sha256 = "150j9y5c9pw80fwp5rzl5q31q9vjbxixaqljkfwxjb5q93fnw6rg";
684 meta.license = lib.licenses.gpl2Only;
687 mr = buildOfficialDict {
690 fullName = "Marathi";
691 filename = "aspell6";
692 sha256 = "0cvgb2l40sppqbi842ivpznsh2xzp1d4hxc371dll8z0pr05m8yk";
693 meta.license = lib.licenses.gpl2Only;
696 ms = buildOfficialDict {
701 sha256 = "0vr4vhipcfhsxqfs8dim2ph7iiixn22gmlmlb375bx5hgd9y7i1w";
702 meta.license = lib.licenses.fdl12Only;
705 mt = buildOfficialDict {
708 fullName = "Maltese";
710 sha256 = "1d2rl1nlfjq6rfywblvx8m88cyy2x0mzc0mshzbgw359c2nwl3z0";
711 meta.license = lib.licenses.lgpl21Only;
714 nb = buildOfficialDict {
716 version = "0.50.1-0";
717 fullName = "Norwegian Bokmal";
719 sha256 = "12i2bmgdnlkzfinb20j2a0j4a20q91a9j8qpq5vgabbvc65nwx77";
720 meta.license = lib.licenses.gpl2Only;
723 nds = buildOfficialDict {
726 fullName = "Low Saxon";
727 filename = "aspell6";
728 sha256 = "1nkjhwzn45dizi89d19q4bqyd87cim8xyrgr655fampgkn31wf6f";
729 meta.license = lib.licenses.lgpl21Only;
732 nl = buildOfficialDict {
737 sha256 = "0ffb87yjsh211hllpc4b9khqqrblial4pzi1h9r3v465z1yhn3j4";
738 # Emacs expects a language called "nederlands".
740 echo "add nl.rws" > $out/lib/aspell/nederlands.multi
742 # from the Copyright file:
743 # > The nl-aspell package includes the GPL COPYRIGHT file but no explicit copyright
744 # > notice. Since he was using autoconf this could have been added automatically.
746 meta.license = lib.licenses.free;
749 nn = buildOfficialDict {
751 version = "0.50.1-1";
752 fullName = "Norwegian Nynorsk";
754 sha256 = "0w2k5l5rbqpliripgqwiqixz5ghnjf7i9ggbrc4ly4vy1ia10rmc";
755 meta.license = lib.licenses.gpl2Only;
758 ny = buildOfficialDict {
761 fullName = "Chichewa";
762 filename = "aspell5";
763 sha256 = "0gjb92vcg60sfgvrm2f6i89sfkgb179ahvwlgs649fx3dc7rfvqp";
764 meta.license = lib.licenses.gpl2Only;
767 or = buildOfficialDict {
771 filename = "aspell6";
772 sha256 = "0kzj9q225z0ccrlbkijsrafy005pbjy14qcnxb6p93ciz1ls7zyn";
773 meta.license = lib.licenses.gpl2Only;
776 pa = buildOfficialDict {
779 fullName = "Punjabi";
780 filename = "aspell6";
781 sha256 = "0if93zk10pyrs38wwj3vpcdm01h51m5z9gm85h3jxrpgqnqspwy7";
782 meta.license = lib.licenses.gpl2Only;
785 pl = buildOfficialDict {
787 version = "6.0_20061121-0";
789 filename = "aspell6";
790 sha256 = "0kap4kh6bqbb22ypja1m5z3krc06vv4n0hakiiqmv20anzy42xq1";
791 meta.license = with lib.licenses; [
799 pt_BR = buildOfficialDict {
801 version = "20131030-12-0";
802 fullName = "Brazilian Portuguese";
803 filename = "aspell6";
804 sha256 = "1xqlpk21s93c6blkdnpk7l62q9fxjvzdv2x86chl8p2x1gdrj3gb";
805 meta.license = with lib.licenses; [
812 pt_PT = buildOfficialDict {
814 version = "20190329-1-0";
815 fullName = "Portuguese";
816 filename = "aspell6";
817 sha256 = "0ld0d0ily4jqifjfsxfv4shbicz6ymm2gk56fq9gbzra1j4qnw75";
818 meta.license = with lib.licenses; [
825 qu = buildOfficialDict {
828 fullName = "Quechua";
829 filename = "aspell6";
830 sha256 = "009z0zsvzq7r3z3m30clyibs94v77b92h5lmzmzxlns2p0lpd5w0";
831 meta.license = lib.licenses.gpl2Only;
834 ro = buildOfficialDict {
837 fullName = "Romanian";
838 filename = "aspell5";
839 sha256 = "0gb8j9iy1acdl11jq76idgc2lbc1rq3w04favn8cyh55d1v8phsk";
840 meta.license = lib.licenses.gpl2Only;
843 ru = buildOfficialDict {
845 version = "0.99f7-1";
846 fullName = "Russian";
847 filename = "aspell6";
848 sha256 = "0ip6nq43hcr7vvzbv4lwwmlwgfa60hrhsldh9xy3zg2prv6bcaaw";
849 meta.license = lib.licenses.free;
852 rw = buildOfficialDict {
855 fullName = "Kinyarwanda";
857 sha256 = "10gh8g747jbrvfk2fn3pjxy1nhcfdpwgmnvkmrp4nd1k1qp101il";
858 meta.license = lib.licenses.gpl2Only;
861 sc = buildOfficialDict {
864 fullName = "Sardinian";
865 filename = "aspell5";
866 sha256 = "0hl7prh5rccsyljwrv3m1hjcsphyrrywk2qvnj122irbf4py46jr";
867 meta.license = lib.licenses.gpl2Only;
870 sk = buildOfficialDict {
874 filename = "aspell6";
875 sha256 = "19k0m1v5pcf7xr4lxgjkzqkdlks8nyb13bvi1n7521f3i4lhma66";
876 meta.license = with lib.licenses; [
883 sl = buildOfficialDict {
886 fullName = "Slovenian";
888 sha256 = "1l9kc5g35flq8kw9jhn2n0bjb4sipjs4qkqzgggs438kywkx2rp5";
889 meta.license = lib.licenses.gpl2Only;
892 sr = buildOfficialDict {
895 fullName = "Serbian";
896 filename = "aspell6";
897 sha256 = "12cj01p4nj80cpf7m3s4jsaf0rsfng7s295j9jfchcq677xmhpkh";
898 meta.license = lib.licenses.lgpl21Only;
901 sv = buildOfficialDict {
904 fullName = "Swedish";
906 sha256 = "02jwkjhr32kvyibnyzgx3smbnm576jwdzg3avdf6zxwckhy5fw4v";
907 meta.license = lib.licenses.lgpl21Only;
910 sw = buildOfficialDict {
913 fullName = "Swahili";
915 sha256 = "15zjh7hdj2b4dgm5bc12w1ims9q357p1q3gjalspnyn5gl81zmby";
916 meta.license = lib.licenses.lgpl21Only;
919 ta = buildOfficialDict {
921 version = "20040424-1";
923 filename = "aspell6";
924 sha256 = "0sj8ygjsyvnr93cs6324y7az7k2vyw7rjxdc9vnm7z60lbqm5xaj";
925 meta.license = lib.licenses.gpl2Only;
928 te = buildOfficialDict {
932 filename = "aspell6";
933 sha256 = "0pgcgxz7dz34zxp9sb85jjzbg3ky6il5wmhffz6ayrbsfn5670in";
934 meta.license = lib.licenses.gpl2Only;
937 tet = buildOfficialDict {
941 filename = "aspell5";
942 sha256 = "17n0y4fhjak47j9qnqf4m4z6zra6dn72rwhp7ig0hhlgqk4ldmcx";
943 meta.license = lib.licenses.gpl2Only;
946 tk = buildOfficialDict {
949 fullName = "Turkmen";
950 filename = "aspell5";
951 sha256 = "02vad4jqhr0xpzqi5q5z7z0xxqccbn8j0c5dhpnm86mnr84l5wl6";
952 meta.license = lib.licenses.gpl2Only;
955 tl = buildOfficialDict {
958 fullName = "Tagalog";
959 filename = "aspell5";
960 sha256 = "1kca6k7qnpfvvwjnq5r1n242payqsjy96skmw78m7ww6d0n5vdj8";
961 meta.license = lib.licenses.gpl2Only;
964 tn = buildOfficialDict {
967 fullName = "Setswana";
968 filename = "aspell5";
969 sha256 = "0q5x7c6z88cn0kkpk7q1craq34g4g03v8x3xcj5a5jia3l7c5821";
970 meta.license = lib.licenses.gpl2Only;
973 tr = buildOfficialDict {
976 fullName = "Turkish";
978 sha256 = "0jpvpm96ga7s7rmsm6rbyrrr22b2dicxv2hy7ysv5y7bbq757ihb";
979 meta.license = lib.licenses.gpl2Only;
982 uk = buildOfficialDict {
985 fullName = "Ukrainian";
986 filename = "aspell6";
987 sha256 = "137i4njvnslab6l4s291s11xijr5jsy75lbdph32f9y183lagy9m";
988 meta.license = with lib.licenses; [
994 uz = buildOfficialDict {
998 filename = "aspell6";
999 sha256 = "0sg3wlyply1idpq5ypyj7kgnaadaiskci1sqs811yhg2gzyc3092";
1000 meta.license = lib.licenses.gpl2Only;
1003 vi = buildOfficialDict {
1005 version = "0.01.1-1";
1006 fullName = "Vietnamese";
1007 filename = "aspell6";
1008 sha256 = "05vwgvf1cj45azhflywx69javqdvqd1f20swrc2d3c32pd9mvn1w";
1009 meta.license = lib.licenses.gpl2Only;
1012 wa = buildOfficialDict {
1015 fullName = "Walloon";
1016 filename = "aspell";
1017 sha256 = "1r1zwz7xkx40dga9vf5wc9ja3jwk1dkpcr1kaa7wryvslf5al5ss";
1018 meta.license = lib.licenses.gpl2Only;
1021 yi = buildOfficialDict {
1023 version = "0.01.1-1";
1024 fullName = "Yiddish";
1025 filename = "aspell6";
1026 sha256 = "0mi842l4038bx3ll2wx9nz44nqrg1x46h5b02zigi1hbbddd6ycq";
1027 meta.license = lib.licenses.gpl2Only;
1030 zu = buildOfficialDict {
1034 filename = "aspell";
1035 sha256 = "15k7gaxrnqnssdyk9l6g27dq317dqp9jz5yzafd25ri01g6mb8iz";
1036 meta.license = lib.licenses.lgpl21Only;
1041 en-computers = buildTxtDict {
1042 shortName = "en-computers";
1043 fullName = "English Computer Jargon";
1046 url = "https://mrsatterly.com/computer.dic";
1047 sha256 = "1vzk7cdvcm9r1c6mgxpabrdcpvghdv9mjmnf6iq5wllcif5nsw2b";
1050 langInputs = [ en ];
1054 cat $src | aspell-affix en-computers --dont-validate-words --lang=en
1057 installPhase = "aspell-install en-computers";
1060 homepage = "https://mrsatterly.com/spelling.html";
1061 license = lib.licenses.wtfpl; # as a comment the source file
1065 en-science = buildTxtDict {
1066 shortName = "en-science";
1067 fullName = "English Scientific Jargon";
1070 url = "https://web.archive.org/web/20180806094650if_/http://jpetrie.net/wp-content/uploads/custom_scientific_US.txt";
1071 hash = "sha256-I5d/jf/5v9Nptu2H9qfvMBzSwJYoQOTEzJfQTxKoWN8=";
1075 url = "https://web.archive.org/web/20180131231829if_/http://jpetrie.net/wp-content/uploads/custom_scientific_UK.txt";
1076 hash = "sha256-oT4nUiev5q4QjHeuF8jNVBcyyHE9fdH9+uDMkZsOWp8=";
1079 langInputs = [ en ];
1083 cat $src1 | aspell-plain en_US-science --dont-validate-words --lang=en
1084 cat $src2 | aspell-plain en_GB-science --dont-validate-words --lang=en
1087 installPhase = "aspell-install en_US-science en_GB-science";
1090 homepage = "https://web.archive.org/web/20210425104207/http://www.jpetrie.net/scientific-word-list-for-spell-checkersspelling-dictionaries/";
1091 # no license is given so we have to assume it is unfree
1092 license = lib.licenses.unfree;