use like this: (hunspellWithDicts (with hunspellDicts; [en-us en-gb-ise]))wip/yesman
parent
77f8f35d57
commit
b34b05b3b8
@ -0,0 +1,13 @@ |
||||
{ 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 = '' |
||||
makeWrapper ${hunspell}/bin/hunspell $out/bin/hunspell --prefix DICPATH : ${searchPath} |
||||
''; |
||||
inherit (hunspell) meta; |
||||
} |
Loading…
Reference in new issue