1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

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
This commit is contained in:
Silvan Mosberger 2020-09-29 02:08:16 +02:00
parent 09eb860c99
commit 75d24ef5e7
No known key found for this signature in database
GPG key ID: E8F1E9EAD284E17D

View file

@ -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";