blob: ab09931579c78811e9e577930788caefa37f1e69 (
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;
nativeBuildInputs = [ makeWrapper ];
buildCommand = ''
makeWrapper ${nuspell}/bin/nuspell $out/bin/nuspell --prefix DICPATH : ${searchPath}
'';
meta = removeAttrs nuspell.meta ["outputsToInstall"];
}
|