-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
stdenv: symlink propagated docs #44558
stdenv: symlink propagated docs #44558
Conversation
d389aff
to
676d8e0
Compare
Success on aarch64-linux (full log) Attempted: stdenv Partial log (click to expand)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
I like the new parameter order, too. |
Failure on x86_64-linux (full log) Attempted: stdenv Partial log (click to expand)
|
See discussion in NixOS#44516.
676d8e0
to
02c09e0
Compare
It just struck me that this can be simplified even more with the changes I already made here. Dropped all explicit |
Ping. I just successfully built my whole Linux system on top of this change. I also doubt this version will break anything on Darwin as it now selects `propagateDoc` automagically.
I'd merge.
|
Sorry for no merge from me; I'm temporary unable to test on Darwin. Thanks @matthewbauer |
IMHO the correct fix is to use |
@edolstra can you elaborate why? I feel like it makes no difference semantically speaking but it's simpler.
|
I want to be able to do |
02c09e0 (NixOS#44558) was reverted in c981787 but, as it turns out, it fixed an issue I didn't know about at the time: the values of `propagateDoc` options were (and now again are) inconsistent with the underlying things those wrappers wrap (see NixOS#46119), which was (and now is) likely to produce more instances of NixOS#43547, if not now, then eventually as stdenv changes. This patch (which is a simplified version of the original reverted patch) is the simplest solution to this whole thing: it forces wrappers to directly inspect the outputs of the things they are wrapping instead of making stdenv guess the correct values.
Motivation for this change
This sidesteps the original problem of #43547 as suggested by @infinisil in #43547 (comment) and @dezgeg in #44516 (comment).
Things done
Things not done