Merge pull request #2770 from jdonszelmann/fix-nix

fix Nix setup description
This commit is contained in:
waffle 2026-02-09 13:08:07 +01:00 committed by GitHub
commit 7362c41884
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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