Skip to content

Commit c52d952

Browse files
committed
add instructions for generating flake.lock to envrc-flake
Previous setup instructions did not work without. (i.e. the envrc would not do anything, `nix flake show..` would provide unhelpful error)
1 parent 7e565cc commit c52d952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/nix-dev-shell/envrc-flake

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# If you want to use this as an .envrc file to create a shell with necessery components
22
# to develop rustc, use the following command in the root of the rusr checkout:
33
#
4-
# ln -s ./src/tools/nix-dev-shell/envrc-flake ./.envrc && echo .envrc >> .git/info/exclude
4+
# ln -s ./src/tools/nix-dev-shell/envrc-flake ./.envrc && nix flake update --flake ./src/tools/nix-dev-shell && echo .envrc >> .git/info/exclude
55

66
if nix flake show path:./src/tools/nix-dev-shell &> /dev/null; then
77
use flake path:./src/tools/nix-dev-shell

0 commit comments

Comments
 (0)