-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
nix-shell: Add strictDeps-proof --tools, --inputs #4452
nix-shell: Add strictDeps-proof --tools, --inputs #4452
Conversation
Unlike -p, which will be phased out, these are future proof with strictDeps in mind. A more immediate benefit is that --tools is capable of providing shell autocompletions.
Not sure whether we should add more features to the (legacy) |
I don't think We seem to have these use cases here
I don't think there's a real need for interactively invoked nix-shells based on stdenv ( I understand your caution with the legacy options, but in this case I don't think it creates technical debt, because we don't need to support this in the Also, if for whatever reason we do want stdenv-based ad-hoc shells in the |
I marked this as stale due to inactivity. → More info |
Still valid. Also, since the nix command can't replace I'll happily rebase this after a preliminary approval from a maintainer. Or improve it after a review. |
I marked this as stale due to inactivity. → More info |
🎶 |
Triaged in Nix team meeting:
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-06-30-nix-team-meeting-minutes-67/29835/1 |
Unlike
-p
, which will be phased out, these are future proof withstrictDeps
in mind.A more immediate benefit is that
--tools
is capable of providing shell autocompletions.Closes #2504, closes #4254
@Ericson2314 perhaps we could duplicate
-p
arguments inbuildInputs
andnativeBuildInputs
, emulating non-strictDeps. Seems rather crude though. What do you think?Preserves the odd
packages -p
behavior also mentioned in #4230 and assumes intent of-p
aka--inputs
for those packages.