mirror of
https://github.com/oxalica/nil.git
synced 2025-12-23 09:19:49 +00:00
Add rust-src in dev env for rust-analyzer
This commit is contained in:
parent
05b7d9e936
commit
fb8a8cb077
1 changed files with 3 additions and 1 deletions
|
|
@ -101,7 +101,9 @@ rec {
|
|||
rustPkgs.rust-nightly_2023-07-08.availableComponents.rustfmt
|
||||
# Follows nixpkgs's version of rustc.
|
||||
(let vers = lib.splitVersion rustc.version; in
|
||||
rustPkgs."rust_${lib.elemAt vers 0}_${lib.elemAt vers 1}_${lib.elemAt vers 2}")
|
||||
rustPkgs."rust_${lib.elemAt vers 0}_${lib.elemAt vers 1}_${lib.elemAt vers 2}".override {
|
||||
extensions = [ "rust-src" ];
|
||||
})
|
||||
|
||||
# Don't include `nix` by default. If would override user's (newer
|
||||
# or patched) one, cause damage or misbehavior due to version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue