dotfiles/nix/overlays/emacs/hunspell-with-dicts.nix
Magic_RB 11fc09120b
Switch old halfFlake system to regular overlays
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2021-04-09 00:35:36 +02:00

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"];
}