a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
12 lines
434 B
Nix
12 lines
434 B
Nix
{ 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"];
|
|
}
|