2016-02-01 17:44:20 +00:00
|
|
|
{ stdenv, lib, hunspell, makeWrapper, dicts ? [] }:
|
|
|
|
let
|
2023-01-26 17:31:02 +00:00
|
|
|
searchPath = lib.makeSearchPath "share/hunspell" dicts;
|
2016-02-01 17:44:20 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2023-01-26 17:31:02 +00:00
|
|
|
name = (lib.appendToName "with-dicts" hunspell).name;
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2016-02-01 17:44:20 +00:00
|
|
|
buildCommand = ''
|
2022-05-06 16:32:09 +00:00
|
|
|
makeWrapper ${hunspell.bin}/bin/hunspell $out/bin/hunspell --prefix DICPATH : ${lib.escapeShellArg searchPath}
|
2016-02-01 17:44:20 +00:00
|
|
|
'';
|
2016-09-18 20:39:57 +00:00
|
|
|
meta = removeAttrs hunspell.meta ["outputsToInstall"];
|
|
|
|
}
|