at 23.05-pre 13 lines 426 B view raw
1{ stdenv, lib, nuspell, makeWrapper, dicts ? [] }: 2with lib; 3let 4 searchPath = makeSearchPath "share/hunspell" dicts; 5in 6stdenv.mkDerivation { 7 name = (appendToName "with-dicts" nuspell).name; 8 nativeBuildInputs = [ makeWrapper ]; 9 buildCommand = '' 10 makeWrapper ${nuspell}/bin/nuspell $out/bin/nuspell --prefix DICPATH : ${lib.escapeShellArg searchPath} 11 ''; 12 meta = removeAttrs nuspell.meta ["outputsToInstall"]; 13}