1 { lib, rustPlatform, runCommand, makeWrapper, rust-analyzer-unwrapped
2 , pname ? "rust-analyzer"
3 , version ? rust-analyzer-unwrapped.version
4 # Use name from `RUST_SRC_PATH`
5 , rustSrc ? rustPlatform.rustLibSrc
7 runCommand "${pname}-${version}" {
9 inherit (rust-analyzer-unwrapped) src meta;
10 nativeBuildInputs = [ makeWrapper ];
13 makeWrapper ${rust-analyzer-unwrapped}/bin/rust-analyzer $out/bin/rust-analyzer \
14 --set-default RUST_SRC_PATH "${rustSrc}"