Skip to content

Commit 294ae3f

Browse files
committed
nix shell: add stage0 rustc/cargo to path
this makes r-a pickup on them and use them instead of system (not) installed ones
1 parent 0b0d971 commit 294ae3f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tools/nix-dev-shell/shell.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ pkgs.mkShell {
2121
# Get the runtime deps of the x wrapper
2222
] ++ lists.flatten (attrsets.attrValues env);
2323

24+
shellHook = ''
25+
export PATH=$(pwd)/build/host/stage0/bin:$PATH
26+
'';
27+
2428
env = {
2529
# Avoid creating text files for ICEs.
2630
RUSTC_ICE = 0;

0 commit comments

Comments
 (0)