From 780ea76e276e7d30feea9af0cc7b95a53e374bfe Mon Sep 17 00:00:00 2001 From: Evgenii Lepikhin Date: Fri, 29 Sep 2023 16:18:10 +0300 Subject: feat: [WIP] Added rust-analyzer --- johnlepikhin/packages/rust.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/johnlepikhin/packages/rust.scm b/johnlepikhin/packages/rust.scm index a5ba3aa..e1d4305 100644 --- a/johnlepikhin/packages/rust.scm +++ b/johnlepikhin/packages/rust.scm @@ -956,6 +956,7 @@ safety and thread safety guarantees.") "library/std" ;rustc "src/tools/cargo" "src/tools/clippy" + "src/tools/rust-analyzer" "src/tools/rustfmt")))) (replace 'check ;; Phase overridden to also test rustfmt. @@ -974,6 +975,11 @@ safety and thread safety guarantees.") (("prefix = \"[^\"]*\"") (format #f "prefix = ~s" (assoc-ref outputs "clippy")))) (invoke "./x.py" "install" "clippy") + (substitute* "config.toml" + ;; Adjust the prefix to the 'rust-analyzer' output. + (("prefix = \"[^\"]*\"") + (format #f "prefix = ~s" (assoc-ref outputs "rust-analyzer")))) + (invoke "./x.py" "install" "rust-analyzer") (substitute* "config.toml" ;; Adjust the prefix to the 'rustfmt' output. (("prefix = \"[^\"]*\"") -- cgit v1.3