mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
13 lines
434 B
Nix
13 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"];
|
|
}
|