diff options
author | Silvan Mosberger <contact@infinisil.com> | 2020-09-29 02:08:16 +0200 |
---|---|---|
committer | Silvan Mosberger <contact@infinisil.com> | 2020-09-29 02:08:16 +0200 |
commit | 75d24ef5e7148918f9df38042982f67446ee37a8 (patch) | |
tree | 5d478fcbf83eec356200c6ca5dea4d434ab8d92b /pkgs/data/documentation/man-pages | |
parent | 09eb860c995d4b8d875c6322fe573cc01918e357 (diff) |
man-pages: Make it findable by manpages
Previously `nix-shell -p man-pages` wouldn't work, because `man` by
default looks up man pages only for the packages that appear in PATH.
Since man-pages didn't have anything in $out/bin though, it wouldn't be
put on PATH.
This fixes that by just creating an empty $out/bin
Diffstat (limited to 'pkgs/data/documentation/man-pages')
-rw-r--r-- | pkgs/data/documentation/man-pages/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/data/documentation/man-pages/default.nix b/pkgs/data/documentation/man-pages/default.nix index 58aaf8c47ca8..6d0cbc50aeca 100644 --- a/pkgs/data/documentation/man-pages/default.nix +++ b/pkgs/data/documentation/man-pages/default.nix @@ -14,6 +14,10 @@ stdenv.mkDerivation rec { # conflict with shadow-utils rm $out/share/man/man5/passwd.5 \ $out/share/man/man3/getspnam.3 + + # The manpath executable looks up manpages from PATH. And this package won't + # appear in PATH unless it has a /bin folder + mkdir -p $out/bin ''; outputDocdev = "out"; |