You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[pure-shell] making sure nix is in path in pure mode (#1143)
## Summary
This is a follow up PR from as a result of [this
discussion](#1084 (comment)).
Note, xdg dirs don't keep any nix executables as far as I know. Single
user and multi user nix installation put the nix executable in
`~/.nix-profile/bin/` and `/nix/var/nix/profiles/default/bin`
respectively.
Also added tests for devbox run pure mode. For `devbox shellenv`, pure
mode doesn't really make sense to write tests for, and for `devbox
shell` it's not possible to write testscript tests.
## How was it tested?
- in a single user nix installed env, run `./devbox shell --pure`
- `devbox add which`
- `which nix` should point to `~/.nix-profile/bin/nix`
- in a multi-user nix, same test should point to
`/nix/var/nix/profiles/default/bin/nix`
0 commit comments