Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 40 lines 865 B view raw
1{ stdenv, hspell }: 2 3let 4 dict = variant: a: stdenv.mkDerivation ({ 5 inherit (hspell) version src patchPhase nativeBuildInputs; 6 buildFlags = [ variant ]; 7 8 meta = hspell.meta // { 9 broken = true; 10 description = "${variant} Hebrew dictionary"; 11 } // (if a ? meta then a.meta else {}); 12 } // (removeAttrs a ["meta"])); 13in 14{ 15 recurseForDerivations = true; 16 17 aspell = dict "aspell" { 18 pname = "aspell-dict-he"; 19 20 installPhase = '' 21 mkdir -p $out/lib/aspell 22 cp -v he_affix.dat he.wl $out/lib/aspell''; 23 }; 24 25 myspell = dict "myspell" { 26 pname = "myspell-dict-he"; 27 28 installPhase = '' 29 mkdir -p $out/lib/myspell 30 cp -v he.dic he.aff $out/lib/myspell''; 31 }; 32 33 hunspell = dict "hunspell" { 34 pname = "hunspell-dict-he"; 35 36 installPhase = '' 37 mkdir -p $out/lib 38 cp -rv hunspell $out/lib''; 39 }; 40}