-
-
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
docs/installShellFiles: document how to not break cross-compilation #326016
Conversation
c3ff62c
to
cde8053
Compare
cde8053
to
9d7fcba
Compare
9d7fcba
to
a2b9db8
Compare
PR on the same subject #325591 |
installShellCompletion --cmd foobar \ | ||
--bash <($out/bin/foobar --bash-completion) \ | ||
--fish <($out/bin/foobar --fish-completion) \ | ||
--zsh <($out/bin/foobar --zsh-completion) | ||
''; | ||
} | ||
``` | ||
|
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.
Some people have spoken out against this solution before #316749 (comment) and below.
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.
I cannot quite follow the reasoning in this thread though. Qemu is not that bad to have in your build closure. It should be already compiled anyway. But I think it's harder to test, so I personally prefer if contributor at least remove this completion for cross compilation.
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.
I don't have a strong opinion either way, just trying to tie all the discussions in various places together (and hopefully the bikeshedding will converge on something).
Separate question: why is this in preFixup
? Is that because it's before wrapping happens?
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.
I don't have a strong opinion here. I let you let write the documentation than.
Just ping me on the review.
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.
Also linking to discussion in #308283 . |
Description of changes
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.