diff options
| -rw-r--r-- | johnlepikhin/packages/rust.scm | 6 |
1 files changed, 6 insertions, 0 deletions
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. @@ -975,6 +976,11 @@ safety and thread safety guarantees.") (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 = \"[^\"]*\"") (format #f "prefix = ~s" (assoc-ref outputs "rustfmt")))) |
