nix-shell: Add strictDeps-proof --tools, --inputs#4452
nix-shell: Add strictDeps-proof --tools, --inputs#4452roberth wants to merge 1 commit intoNixOS:masterfrom
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 withstrictDepsin mind.A more immediate benefit is that
--toolsis capable of providing shell autocompletions.Closes #2504, closes #4254
@Ericson2314 perhaps we could duplicate
-parguments inbuildInputsandnativeBuildInputs, emulating non-strictDeps. Seems rather crude though. What do you think?Preserves the odd
packages -pbehavior also mentioned in #4230 and assumes intent of-paka--inputsfor those packages.