diff options
author | Alyssa Ross <hi@alyssa.is> | 2020-10-28 11:32:50 +0000 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2020-11-01 10:58:48 +0100 |
commit | 7bf3d77ed667e9186dbe05526a60518c7340be68 (patch) | |
tree | 606132ebeb6d7e307ef85f193e13d5f11ac92e6e /pkgs/tools/text | |
parent | d1d536cc07f570b0322c2a49fb708b9c6df19034 (diff) |
groff: set "operating system" for mdoc pages
Prior to this change, man pages from Nixpkgs written using the mdoc(7)
macros would start like this:
NC(1) BSD General Commands Manual NC(1)
and end like this:
BSD December 27, 2018 BSD
No matter what operating system they were run on.
It's far more accurate to say "Nixpkgs General Commands Manual", so
with this patch we configure groff to do just that. The variable is
called "operating-system", but I think it makes more sense to say
"Nixpkgs" than "NixOS" or something, because packages from Nixpkgs can
run on lots of operating systems, and the important thing is that the
package is from Nixpkgs.
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r-- | pkgs/tools/text/groff/site.tmac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/text/groff/site.tmac b/pkgs/tools/text/groff/site.tmac index 8ef1040ca4a0..776a7abb1da7 100644 --- a/pkgs/tools/text/groff/site.tmac +++ b/pkgs/tools/text/groff/site.tmac @@ -14,3 +14,6 @@ . if '\V[GROFF_SGR]'' \ . output x X tty: sgr 0 .\} +. +.ds doc-default-operating-system Nixpkgs +.ds doc-volume-operating-system Nixpkgs |