Skip to content

Commit ef55303

Browse files
authored
chore(nix): include RUST_SRC_PATH in nix-shell (#241)
This fixes rust-analyzer not being able to find the source path after merging #220.
1 parent a4ef111 commit ef55303

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

nix/shell.nix

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,12 @@ let
55

66
env = buildEnv {
77
name = "console-env";
8-
paths = [ ]
9-
++ lib.optional stdenv.isDarwin libiconv
10-
++ tokio-console.buildInputs
11-
++ tokio-console.nativeBuildInputs;
8+
paths = [ ] ++ lib.optional stdenv.isDarwin libiconv
9+
++ tokio-console.buildInputs ++ tokio-console.nativeBuildInputs;
1210
};
13-
in
14-
mkShell {
11+
in mkShell {
1512
buildInputs = [ env ];
16-
13+
RUST_SRC_PATH = "${rust.packages.stable.rustPlatform.rustLibSrc}";
1714
CARGO_TERM_COLOR = "always";
1815
RUST_BACKTRACE = "full";
1916
}

0 commit comments

Comments
 (0)