···29 ];
3031 postInstall = ''
32- for i in "$out/bin/"*; do
33- wrapProgram "$i" --prefix PATH : "${groff}/bin"
00034 done
35 '';
36
···29 ];
3031 postInstall = ''
32+ # apropos/whatis uses program name to decide whether to act like apropos or whatis
33+ # (multi-call binary). `apropos` is actually just a symlink to whatis. So we need to
34+ # make sure that we don't wrap symlinks (since that changes argv[0] to the -wrapped name)
35+ find "$out/bin" -type f | while read file; do
36+ wrapProgram "$file" --prefix PATH : "${groff}/bin"
37 done
38 '';
39