2010-10-17 20:44:00 +02:00
|
|
|
{ stdenv, hspell }:
|
|
|
|
|
|
|
|
let
|
2019-10-27 14:03:25 +01:00
|
|
|
dict = variant: a: stdenv.mkDerivation ({
|
2012-12-28 19:20:09 +01:00
|
|
|
inherit (hspell) src patchPhase nativeBuildInputs;
|
2019-12-31 02:32:47 +01:00
|
|
|
buildFlags = [ variant ];
|
|
|
|
|
2010-10-17 20:44:00 +02:00
|
|
|
meta = hspell.meta // {
|
2017-07-29 21:29:14 +02:00
|
|
|
broken = true;
|
2019-10-27 14:03:25 +01:00
|
|
|
description = "${variant} Hebrew dictionary";
|
2010-10-17 21:07:03 +02:00
|
|
|
} // (if a ? meta then a.meta else {});
|
|
|
|
} // (removeAttrs a ["meta"]));
|
2010-10-17 20:44:00 +02:00
|
|
|
in
|
|
|
|
{
|
|
|
|
recurseForDerivations = true;
|
|
|
|
|
2019-10-27 14:03:25 +01:00
|
|
|
aspell = dict "aspell" {
|
2010-10-17 20:44:00 +02:00
|
|
|
name = "aspell-dict-he-${hspell.version}";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib/aspell
|
|
|
|
cp -v he_affix.dat he.wl $out/lib/aspell'';
|
|
|
|
};
|
|
|
|
|
2019-10-27 14:03:25 +01:00
|
|
|
myspell = dict "myspell" {
|
2010-10-17 20:44:00 +02:00
|
|
|
name = "myspell-dict-he-${hspell.version}";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib/myspell
|
|
|
|
cp -v he.dic he.aff $out/lib/myspell'';
|
|
|
|
};
|
|
|
|
|
2019-10-27 14:03:25 +01:00
|
|
|
hunspell = dict "hunspell" {
|
2010-10-17 20:44:00 +02:00
|
|
|
name = "hunspell-dict-he-${hspell.version}";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib
|
|
|
|
cp -rv hunspell $out/lib'';
|
|
|
|
};
|
|
|
|
}
|