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
mkShell: introduce packages argument #122180
Conversation
The distinction between the inputs doesn't really make sense in the mkShell context. Technically speaking, we should be using the nativeBuildInputs most of the time. So in order to make this function more beginner-friendly, add "packages" as an attribute, that maps to nativeBuildInputs. This commit also updates all the uses in nixpkgs.
I would be more in favor of just updating the documentation and changing to |
I'd prefer to rename |
I guess it was to be expected to get bikeshedding reviews. Since it's a matter of preference and I am the author of mkShell I will just go ahead and merge this. |
Go for it. Don't let mere ideas and opinions get in the way of improvement. |
I would like to request some clarification. As someone who enjoys popping up a cross-compilation
Whereas this one seems to be at odds with a lot of what I've been doing
After giving it some thought, I think maybe
It seems that the first two cases are already handled by The last use case, however, seems to be the one this PR focuses on, like a Is that a correct understanding of the purpose of this pull request? Additionally, there may be the slight issue that the various |
It's perfectly fine to use |
I see, thanks for the explanation |
Attribute `packages` is actually `nativeBuildInputs`. See NixOS/nixpkgs#122180
Motivation for this change
The distinction between the inputs doesn't really make sense in the
mkShell context. Technically speaking, we should be using the
nativeBuildInputs most of the time.
So in order to make this function more beginner-friendly, add "packages"
as an attribute, that maps to nativeBuildInputs.
This commit also updates all the uses in nixpkgs.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)