mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-10-02 01:50:18 +02:00
![Eelco Dolstra](/assets/img/avatar_default.png)
Likewise for propagatedBuildNativeInputs, etc. "buildNativeInputs" sounds like an imperative rather than a noun phrase.
44 lines
909 B
Nix
44 lines
909 B
Nix
{ stdenv, hspell }:
|
|
|
|
let
|
|
dict = a: stdenv.mkDerivation ({
|
|
inherit (hspell) src patchPhase nativeBuildInputs;
|
|
meta = hspell.meta // {
|
|
description = "${a.buildFlags} Hebrew dictionary";
|
|
} // (if a ? meta then a.meta else {});
|
|
} // (removeAttrs a ["meta"]));
|
|
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'';
|
|
};
|
|
}
|