mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
14 lines
411 B
Nix
14 lines
411 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}
|
|
'';
|
|
meta = removeAttrs hunspell.meta ["outputsToInstall"];
|
|
}
|