-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tmux (and possibly others): missing man-pages when installed via nix-shell #25483
Comments
It's not a case for multiple output packages. See https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/tmux/default.nix#L18 |
As pointed out by @danbst they're in a separate attribute that you would have to include.
|
@FRidh what you suggest will not work, because MANPATH is not automatically set within nix-shells. I mentioned this briefly in the issue description but it is not part of the actual issue. If you try it you'll see $ nix-shell -p tmux tmux.man man less --pure
[nix-shell:~]$ man tmux
No manual entry for tmux |
In that case I think this is legitimate issue. Setting man path isn't strict requirement when "building" a package, that explains why it doesn't work now. |
Actually, I can't reproduce the error, but that seems to be due to an impurity. Even with
I get the man pages, so it somehow still seems to find the ones that I've installed. |
It seems that using multiple outputs for manpages breaks this man patch for nix-shell: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/man/default.nix#L18-L19 https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/man/share.patch |
Could this be related to NixOS/nix#1379 ? |
This comment has been minimized.
This comment has been minimized.
This is still reproducible for me today. |
This comment has been minimized.
This comment has been minimized.
Still true :-) |
I marked this as stale due to inactivity. → More info |
|
this is fixed in
May have been fixed by NixOS/nix#6426 we add man to nixpkgs/pkgs/stdenv/generic/make-derivation.nix Lines 425 to 429 in fe30650
|
|
what nix version? |
|
Issue description
I generally expect $out/share/man to contain the man-pages that come installed with the package, and often that is the case. So for nix-shell I wrote a snippet that concats the MANPATH accordingly. AFAIU this is similar to what NixOS does for profiles. The problem is that not every package seems to install manpages when installed with nix-shell.
Steps to reproduce
Technical details
The text was updated successfully, but these errors were encountered: