2010-10-17 20:44:00 +02:00
|
|
|
{ stdenv, hspell }:
|
|
|
|
|
|
|
|
let
|
|
|
|
dict = a: stdenv.mkDerivation ({
|
2012-12-28 19:20:09 +01:00
|
|
|
inherit (hspell) src patchPhase nativeBuildInputs;
|
2010-10-17 20:44:00 +02:00
|
|
|
meta = hspell.meta // {
|
2017-07-29 21:29:14 +02:00
|
|
|
broken = true;
|
2010-10-17 20:44:00 +02:00
|
|
|
description = "${a.buildFlags} 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;
|
|
|
|
|
|
|
|
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'';
|
|
|
|
};
|
|
|
|
}
|