nixpkgs/pkgs/development/libraries/hspell/dicts.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
865 B
Nix
Raw Normal View History

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