depot/third_party/nixpkgs/pkgs/development/libraries/hspell/dicts.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

40 lines
908 B
Nix

{ stdenv, hspell }:
let
dict = variant: a: stdenv.mkDerivation ({
inherit (hspell) 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" {
name = "aspell-dict-he-${hspell.version}";
installPhase = ''
mkdir -p $out/lib/aspell
cp -v he_affix.dat he.wl $out/lib/aspell'';
};
myspell = dict "myspell" {
name = "myspell-dict-he-${hspell.version}";
installPhase = ''
mkdir -p $out/lib/myspell
cp -v he.dic he.aff $out/lib/myspell'';
};
hunspell = dict "hunspell" {
name = "hunspell-dict-he-${hspell.version}";
installPhase = ''
mkdir -p $out/lib
cp -rv hunspell $out/lib'';
};
}