groff: Add site.tmac to fix man page coloring

This enables groff to correctly respond to the LESS_TERMCAP_*
environment variables, allowing colorized man pages.

Patch is taken from Arch Linux;
see https://bugs.archlinux.org/task/33760.
This commit is contained in:
Aneesh Agrawal
2017-07-01 18:58:34 -07:00
parent 3c29fbe72a
commit 111b5eb637
2 changed files with 19 additions and 0 deletions
+3
View File
@@ -59,6 +59,9 @@ stdenv.mkDerivation rec {
postInstall = ''
rm $doc/share/doc/groff/examples/hdtbl/*color*ps
find $doc/share/doc/groff/ -type f -print0 | xargs -0 sed -i -e 's/%%CreationDate: .*//'
for f in 'man.local' 'mdoc.local'; do
cat '${./site.tmac}' >>"$out/share/groff/site-tmac/$f"
done
'';
meta = with stdenv.lib; {