1 { stdenv, lib, hunspell, makeWrapper, dicts ? [] }:
3 searchPath = lib.makeSearchPath "share/hunspell" dicts;
6 name = (lib.appendToName "with-dicts" hunspell).name;
7 nativeBuildInputs = [ makeWrapper ];
9 makeWrapper ${hunspell.bin}/bin/hunspell $out/bin/hunspell --prefix DICPATH : ${lib.escapeShellArg searchPath}
11 meta = removeAttrs hunspell.meta ["outputsToInstall"];