Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 12 lines 434 B view raw
1{ stdenv, lib, hunspell, makeWrapper, dicts ? [] }: 2let 3 searchPath = lib.makeSearchPath "share/hunspell" dicts; 4in 5stdenv.mkDerivation { 6 name = (lib.appendToName "with-dicts" hunspell).name; 7 nativeBuildInputs = [ makeWrapper ]; 8 buildCommand = '' 9 makeWrapper ${hunspell.bin}/bin/hunspell $out/bin/hunspell --prefix DICPATH : ${lib.escapeShellArg searchPath} 10 ''; 11 meta = removeAttrs hunspell.meta ["outputsToInstall"]; 12}