Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
59 lines
1.0 KiB
Nix
59 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
hspell,
|
|
}:
|
|
|
|
let
|
|
dict =
|
|
variant: a:
|
|
stdenv.mkDerivation (
|
|
{
|
|
inherit (hspell)
|
|
version
|
|
src
|
|
patches
|
|
postPatch
|
|
nativeBuildInputs
|
|
;
|
|
buildFlags = [ variant ];
|
|
|
|
meta =
|
|
hspell.meta
|
|
// {
|
|
broken = true;
|
|
description = "${variant} Hebrew dictionary";
|
|
}
|
|
// (lib.optionalAttrs (a ? meta) a.meta);
|
|
}
|
|
// (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'';
|
|
};
|
|
}
|