blob: 4386542ff20e5e1806de66d3fd743fc16ef8f391 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{ stdenv, lib, nuspell, makeWrapper, dicts ? [] }:
with lib;
let
searchPath = makeSearchPath "share/hunspell" dicts;
in
stdenv.mkDerivation {
name = (appendToName "with-dicts" nuspell).name;
buildInputs = [ makeWrapper ];
buildCommand = ''
makeWrapper ${nuspell}/bin/nuspell $out/bin/nuspell --prefix DICPATH : ${searchPath}
'';
meta = removeAttrs nuspell.meta ["outputsToInstall"];
}
|