mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-26 18:16:13 +01:00
11fc09120b
Signed-off-by: Magic_RB <magic_rb@redalder.org>
19 lines
473 B
Nix
19 lines
473 B
Nix
{ stdenv, appendToName
|
|
, hunspell, hunspellDicts
|
|
, makeWrapper
|
|
, lib
|
|
|
|
, dicts ? [ hunspellDicts.en_US ]
|
|
}:
|
|
let
|
|
searchPath = lib.makeSearchPath "share/hunspell" dicts;
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = (appendToName "with-dicts" hunspell).name;
|
|
buildInputs = [ makeWrapper ];
|
|
buildCommand = ''
|
|
makeWrapper ${hunspell.bin}/bin/hunspell $out/bin/hunspell --prefix DICPATH : ${searchPath}
|
|
'';
|
|
meta = removeAttrs hunspell.meta ["outputsToInstall"];
|
|
}
|