2016-02-01 17:44:20 +00:00
|
|
|
{ stdenv, lib, hunspell, makeWrapper, dicts ? [] }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
searchPath = makeSearchPath "share/hunspell" dicts;
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = (appendToName "with-dicts" hunspell).name;
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
buildCommand = ''
|
2016-04-10 19:50:39 +00:00
|
|
|
makeWrapper ${hunspell.bin}/bin/hunspell $out/bin/hunspell --prefix DICPATH : ${searchPath}
|
2016-02-01 17:44:20 +00:00
|
|
|
'';
|
2016-09-18 20:39:57 +00:00
|
|
|
meta = removeAttrs hunspell.meta ["outputsToInstall"];
|
|
|
|
}
|