Merge pull request #2770 from jdonszelmann/fix-nix
fix Nix setup description
This commit is contained in:
commit
7362c41884
1 changed files with 7 additions and 1 deletions
|
|
@ -426,7 +426,7 @@ You can then use that rust2 folder as a separate workspace for modifying and bui
|
|||
|
||||
Several nix configurations are defined in `src/tools/nix-dev-shell`.
|
||||
|
||||
If you're using direnv, you can create a symbol link to `src/tools/nix-dev-shell/envrc-flake` or `src/tools/nix-dev-shell/envrc-shell`
|
||||
If you're using direnv, you can create a symbolic link to `src/tools/nix-dev-shell/envrc-flake` or `src/tools/nix-dev-shell/envrc-shell`
|
||||
|
||||
```bash
|
||||
ln -s ./src/tools/nix-dev-shell/envrc-flake ./.envrc # Use flake
|
||||
|
|
@ -436,6 +436,12 @@ or
|
|||
ln -s ./src/tools/nix-dev-shell/envrc-shell ./.envrc # Use nix-shell
|
||||
```
|
||||
|
||||
If you're using the flake, make sure to also update it with the following command:
|
||||
|
||||
```
|
||||
nix flake update --flake ./src/tools/nix-dev-shell
|
||||
```
|
||||
|
||||
### Note
|
||||
|
||||
Note that when using nix on a not-NixOS distribution, it may be necessary to set
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue