1{ stdenv, lib, nuspell, makeWrapper, dicts ? [] }:
2
3let
4 searchPath = lib.makeSearchPath "share/hunspell" dicts;
5in
6stdenv.mkDerivation {
7 name = (lib.appendToName "with-dicts" nuspell).name;
8 nativeBuildInputs = [ makeWrapper ];
9 buildCommand = ''
10 makeWrapper ${nuspell}/bin/nuspell $out/bin/nuspell --prefix DICPATH : ${lib.escapeShellArg searchPath}
11 '';
12 meta = removeAttrs nuspell.meta ["outputsToInstall"];
13}