Using this function properly links the `rustup` components together, allowing e.g. `rust-analyzer` to find the location of `rust-src`.
13 lines
238 B
Nix
13 lines
238 B
Nix
fenixPkgs: proc:
|
|
fenixPkgs.complete.withComponents ([
|
|
"rustc"
|
|
"rust-std"
|
|
"cargo"
|
|
] ++ (if proc != "build" then [
|
|
"clippy"
|
|
] else []) ++ (if proc == "dev" then [
|
|
"rust-docs"
|
|
"rustfmt"
|
|
"rust-src"
|
|
"rust-analyzer"
|
|
] else []))
|