From 827ab4b072400a2fb6127387e66b5f59a6f6530f Mon Sep 17 00:00:00 2001 From: Morgan Jones Date: Tue, 24 Jun 2025 22:24:25 -0700 Subject: [PATCH] openssh: fix a 17 year old bug by using --with-mantype=doc Using --with-mantype=man slightly mangles ssh docs: - See #418140 for the discussion of the part of the issue that causes "Ns" to be interspersed throughout the text, which dates back (and was reproducible) on nixpkgs from 2007. We discovered several other unimplemented control sequences, including -nosplit, Qq, and Mt, as well as the lack of spacing. - Note the comparisons at https://github.com/numinit/ssh-man-compare. Has been around since deb889e5f25a0505356bc4ad1f2258b5079060e9, possibly even earlier. --- pkgs/tools/networking/openssh/common.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/networking/openssh/common.nix b/pkgs/tools/networking/openssh/common.nix index 6cd3934d8360..d963d43c13b7 100644 --- a/pkgs/tools/networking/openssh/common.nix +++ b/pkgs/tools/networking/openssh/common.nix @@ -109,7 +109,7 @@ stdenv.mkDerivation (finalAttrs: { "--sbindir=\${out}/bin" "--localstatedir=/var" "--with-pid-dir=/run" - "--with-mantype=man" + "--with-mantype=doc" "--with-libedit=yes" "--disable-strip" (lib.withFeature withPAM "pam")