1
1
mirror of https://github.com/oxalica/nil.git synced 2024-11-22 11:22:46 +03:00

Add rust-src in dev env for rust-analyzer

This commit is contained in:
oxalica 2023-07-10 05:44:27 +08:00
parent 05b7d9e936
commit fb8a8cb077

View File

@ -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