man-pages: fix can't resolve man7/groff_man.7 error when running man man

Fixes: #498875
This commit is contained in:
Michael Daniels
2026-03-13 22:02:56 -04:00
parent 5dfc58f6ae
commit 0826600935
+8
View File
@@ -4,6 +4,7 @@
fetchurl,
directoryListingUpdater,
gawk,
groff,
man,
pcre2,
nixosTests,
@@ -27,6 +28,13 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-0Y8hpgKwl3ilqQlr8b6EQbdzPpmBUEdKzPcD0WX06/Q=";
};
# See https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/man/man7/man.7,
# https://github.com/NixOS/nixpkgs/issues/498875
postPatch = ''
substituteInPlace man/man7/man.7 \
--replace-fail '.so man7/groff_man.7' '.so ${lib.getMan groff}/share/man/man7/groff_man.7'
'';
nativeInstallCheckInputs = [
gawk
man