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