-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Flake-based nix-shell replacement #2854
Comments
|
It’s a little bit unfortunate how this issue got closed without any explanation of its state. It would be great to add some pointers to the work that has been done, if any, and to some up to date resources that document the integration of |
The replacement is the |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/build-a-yocto-rootfs-inside-nix/2643/26 |
Will shellHook work when using |
I have found this approach confusing because there are often several distinct cases in which I might want to run a 'shellHook'.
It's entirely unclear to me under which circumstances what As of build nix (Nix) 2.4pre20210802_47e96bb, the following are my findings. Diagnoses were made by exporting a variable and then inspecting the value in the resulting shell environment.
Conclusions:
So my opinion is that My assumption was that that |
For anyone else coming just for the shell use case, the wiki has a nice example including |
TLDR: in compare: |
I was not asking how to do it. I simply was listing separate use cases. |
The
nix
command currently has no modern replacement fornix-shell
. It should provide something that can run/modify a shell based on a flake attribute, e.g.provides.shell
, e.g.There should also be a command for querying the environment variables to be set for an environment. This could be useful for a
direnv
-based setup.The text was updated successfully, but these errors were encountered: