1{
2 lib,
3 stdenv,
4 hspell,
5}:
6
7let
8 dict =
9 variant: a:
10 stdenv.mkDerivation (
11 {
12 inherit (hspell)
13 version
14 src
15 patches
16 postPatch
17 nativeBuildInputs
18 ;
19 buildFlags = [ variant ];
20
21 meta =
22 hspell.meta
23 // {
24 broken = true;
25 description = "${variant} Hebrew dictionary";
26 }
27 // (lib.optionalAttrs (a ? meta) a.meta);
28 }
29 // (removeAttrs a [ "meta" ])
30 );
31in
32{
33 recurseForDerivations = true;
34
35 aspell = dict "aspell" {
36 pname = "aspell-dict-he";
37
38 installPhase = ''
39 mkdir -p $out/lib/aspell
40 cp -v he_affix.dat he.wl $out/lib/aspell'';
41 };
42
43 myspell = dict "myspell" {
44 pname = "myspell-dict-he";
45
46 installPhase = ''
47 mkdir -p $out/lib/myspell
48 cp -v he.dic he.aff $out/lib/myspell'';
49 };
50
51 hunspell = dict "hunspell" {
52 pname = "hunspell-dict-he";
53
54 installPhase = ''
55 mkdir -p $out/lib
56 cp -rv hunspell $out/lib'';
57 };
58}