1
1
mirror of https://github.com/the-nix-way/dev-templates synced 2024-09-11 06:30:39 +02:00

Add env var for rust-analyzer

This commit is contained in:
Luc Perkins 2024-07-20 11:35:11 -07:00
parent 7f2ef8c2f8
commit ff2c36b305
No known key found for this signature in database
GPG Key ID: 16DB1108FB591835
2 changed files with 10 additions and 0 deletions

View File

@ -35,6 +35,11 @@
cargo-watch
rust-analyzer
];
env = {
# Required by rust-analyzer
RUST_SRC_PATH = "${pkgs.rustToolchain}/lib/rustlib/src/rust/library";
};
};
});
};

View File

@ -46,6 +46,11 @@
cargo-watch
rust-analyzer
];
env = {
# Required by rust-analyzer
RUST_SRC_PATH = "${pkgs.rustToolchain}/lib/rustlib/src/rust/library";
};
};
});
};