-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
v3 is missing an equivalent for nix-shell -p
#12867
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
Comments
You have 'nix shell nixpkgs#pkg' and 'nix run nixpkgs#pkg --arg' |
Can you reconstruct my example, given those commands? I am aware of the |
Addendum: The intuitive replacement does not work, as
And after several discussions we figured an actual invocation, though we siply consider it to not exist, as it is convoluted and impure and doesn't support flakeref syntax directly and is basically just writing out a shell expression on the CLI…
A pure variant of this can be done by using a hashed version of |
I don't think we should make the mistake of coupling with Nixpkgs / stdenv interfaces again. For instance a. Make it easy to bring a flake into the scope of an expression that's passed as an argument Then it should look somewhat like For (b) I think it should be a flake output attribute containing a function that receives |
Is your feature request related to a problem?
With the v2 interface I can create fully functional dev shells from a single command without the necessity of declaring them in a file:
There is no way known to me (and many other people I have asked) to reproduce this behavior with the v3 CLI.
Proposed solution
Provide a flag for
nix develop
that is capable of mimicking thenix-shell -p
behavior.Alternative solutions
Additional context
Checklist
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: