mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
7bf3d77ed6
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.
20 lines
448 B
Plaintext
20 lines
448 B
Plaintext
.
|
|
.if n \{\
|
|
. \" Character translations for non-keyboard
|
|
. \" characters - to make them searchable
|
|
. if '\*[.T]'utf8' \{\
|
|
. char \- \N'45'
|
|
. char - \N'45'
|
|
. char ' \N'39'
|
|
. char \' \N'39'
|
|
. \}
|
|
.
|
|
. \" Shut off SGR by default (groff colors)
|
|
. \" Require GROFF_SGR envvar defined to turn it on
|
|
. if '\V[GROFF_SGR]'' \
|
|
. output x X tty: sgr 0
|
|
.\}
|
|
.
|
|
.ds doc-default-operating-system Nixpkgs
|
|
.ds doc-volume-operating-system Nixpkgs
|