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