2016-02-01 18:44:20 +01: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 21:50:39 +02:00
|
|
|
makeWrapper ${hunspell.bin}/bin/hunspell $out/bin/hunspell --prefix DICPATH : ${searchPath}
|
2016-02-01 18:44:20 +01:00
|
|
|
'';
|
2016-09-18 22:39:57 +02:00
|
|
|
meta = removeAttrs hunspell.meta ["outputsToInstall"];
|
|
|
|
}
|