2ce5db779a
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
13 lines
436 B
Nix
13 lines
436 B
Nix
{ stdenv, lib, hunspell, makeWrapper, dicts ? [] }:
|
|
with lib;
|
|
let
|
|
searchPath = makeSearchPath "share/hunspell" dicts;
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = (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"];
|
|
}
|