default to including "man" in outputsToInstall#35884
default to including "man" in outputsToInstall#35884matthewbauer merged 3 commits intoNixOS:masterfrom
Conversation
3232970 to
3a21d5b
Compare
|
|
I think if you do this, I don't know of an easier solution right now, though. Maybe |
|
I do have some installations where I prefer not to have man pages installed to save some storage space, so please do not merge this right away. |
|
@dezgeg How about we control this with a config option? |
|
The problem is that it's use-case dependant of whether the |
|
@dezgeg excellent point. Can we give buildEnv an |
|
Does anybody know what broke this? Did multiple outputs break this? Or Nix 2.0? I'm not using |
|
@fpletz I'm not sure it ever worked, but I don't really know. |
|
Nix only started looking at outputsToInstall Nix 2.0, IIRC. Previously it would just install everything. See NixOS/nix#815 |
|
Good sleuthing! Can we get a nix-level fix for 18.09?? |
|
This pull request has been mentioned on Nix community. There might be relevant details there: https://discourse.nixos.org/t/nix-env-not-linking-man-pages-into-environment/1468/2 |
|
I'd like to get this merged for 19.03 but I can't figure out what the error is coming from... |
weechat error seems to due to copying |
cef62a5 to
a2b606f
Compare
|
!!!! 🎊 👍 😸 |
|
@dezgeg I'm pretty sure If I'm not mistaken the outputs of system packages are determined by EDIT: Looks like buildEnv does look at both, but |
|
Awesome, thank you so much! |
|
We should probably extend this to include |
Perhaps, although at some point it makes sense to just drop outputsToInstall altogether and use nix-env's default behavior of installing everything. #44168 |
|
The downside to just installing everything is this means downloading more artifacts that I may not want. For example, if a given package vends a binary, a library, and dev headers, and all I care about is the binary (which is why I'm installing it directly), I certainly don't need to download and install the dev headers. |
Fixes #24717
In particular,
man tmuxworks after installing tmux withnix-env.This likely breaks things or is bad for some reason, but should work as a starting point.
TODO:
programs.man.enable = false;works (as well as= true).