mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
13 lines
380 B
Nix
13 lines
380 B
Nix
{ stdenv, lib, hunspell, makeWrapper, dicts ? [] }:
|
|
with lib;
|
|
let
|
|
searchPath = 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}
|
|
'';
|
|
inherit (hunspell) meta;
|
|
} |