summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2024-05-16 08:07:54 -0500
committerGitHub <noreply@github.com>2024-05-16 08:07:54 -0500
commitb08b6446262f3e1d8c1941f165933c589ac99279 (patch)
tree09926885fc2555e79d4662a5f8af15332e987bb0
parentad05f5e1ab134e01ea72b86de38acc7ae0329946 (diff)
parent266f40a5ccf5ce7ab6b211c42cb237c1be2493b2 (diff)
Merge pull request #308363 from trofi/man-pages-PATH-fix
man-pages: restore `$out/bin` to fix `nix-shell -p man-pages`
-rw-r--r--pkgs/data/documentation/man-pages/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/data/documentation/man-pages/default.nix b/pkgs/data/documentation/man-pages/default.nix
index deb6a4005f66..3bb5c3b1d18c 100644
--- a/pkgs/data/documentation/man-pages/default.nix
+++ b/pkgs/data/documentation/man-pages/default.nix
@@ -21,6 +21,14 @@ stdenv.mkDerivation rec {
enableParallelInstalling = true;
+ postInstall = ''
+ # The manpath executable looks up manpages from PATH. And this package won't
+ # appear in PATH unless it has a /bin folder. Without the change
+ # 'nix-shell -p man-pages' does not pull in the search paths.
+ # See 'man 5 manpath' for the lookup order.
+ mkdir -p $out/bin
+ '';
+
meta = with lib; {
description = "Linux development manual pages";
homepage = "https://www.kernel.org/doc/man-pages/";