2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, nuspell, makeWrapper, dicts ? [] }:
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
2023-02-02 18:25:31 +00:00
|
|
|
searchPath = lib.makeSearchPath "share/hunspell" dicts;
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2023-02-02 18:25:31 +00:00
|
|
|
name = (lib.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"];
|
|
|
|
}
|