depot/third_party/nixpkgs/pkgs/development/libraries/hspell/dicts.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

40 lines
865 B
Nix

{ stdenv, hspell }:
let
dict = variant: a: stdenv.mkDerivation ({
inherit (hspell) version src patchPhase nativeBuildInputs;
buildFlags = [ variant ];
meta = hspell.meta // {
broken = true;
description = "${variant} Hebrew dictionary";
} // (if a ? meta then a.meta else {});
} // (removeAttrs a ["meta"]));
in
{
recurseForDerivations = true;
aspell = dict "aspell" {
pname = "aspell-dict-he";
installPhase = ''
mkdir -p $out/lib/aspell
cp -v he_affix.dat he.wl $out/lib/aspell'';
};
myspell = dict "myspell" {
pname = "myspell-dict-he";
installPhase = ''
mkdir -p $out/lib/myspell
cp -v he.dic he.aff $out/lib/myspell'';
};
hunspell = dict "hunspell" {
pname = "hunspell-dict-he";
installPhase = ''
mkdir -p $out/lib
cp -rv hunspell $out/lib'';
};
}