blob: 01987ab718581ba8f67dc5d77b8ddc81c52a29c0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
{ stdenv, lib, hunspell, makeWrapper, dicts ? [] }:
let
searchPath = lib.makeSearchPath "share/hunspell" dicts;
in
stdenv.mkDerivation {
name = (lib.appendToName "with-dicts" hunspell).name;
nativeBuildInputs = [ makeWrapper ];
buildCommand = ''
makeWrapper ${hunspell.bin}/bin/hunspell $out/bin/hunspell --prefix DICPATH : ${lib.escapeShellArg searchPath}
'';
meta = removeAttrs hunspell.meta ["outputsToInstall"];
}
|