2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, hunspell, makeWrapper, dicts ? [] }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
searchPath = makeSearchPath "share/hunspell" dicts;
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = (appendToName "with-dicts" hunspell).name;
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildCommand = ''
|
|
|
|
makeWrapper ${hunspell.bin}/bin/hunspell $out/bin/hunspell --prefix DICPATH : ${searchPath}
|
|
|
|
'';
|
|
|
|
meta = removeAttrs hunspell.meta ["outputsToInstall"];
|
|
|
|
}
|