blob: 34c3d26c55ec0b7f90bb20941e0602ac301a36cd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{ 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"];
}
|