nix-community / fenix

Rust toolchains and rust-analyzer nightly for Nix [maintainer=@figsoda]
Mozilla Public License 2.0
608 stars 39 forks source link

Add `rustc` libraries to `rust-analyzer` #147

Closed sandydoo closed 1 month ago

sandydoo commented 2 months ago

Adds the rustc libraries to the runtime path of rust-analyzer.

Tested on:

➜ uname -a
Linux nixos 6.8.4 #1-NixOS SMP Thu Apr  4 18:25:06 UTC 2024 aarch64 GNU/Linux

Repro

nix shell -f . stable.rust-analyzer
rust-analyzer --version

Expected

rust-analyzer 1.77.2 (25ef9e3d 2024-04-09)

Actual

rust-analyzer: error while loading shared libraries: librustc_driver-4766cc27bbc2a07e.so: cannot open shared object file: No such file or directory
domenkozar commented 2 months ago

cc @figsoda