summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgenii Lepikhin <e.lepihin@postgrespro.ru>2023-09-29 16:18:10 +0300
committerEvgenii Lepikhin <e.lepihin@postgrespro.ru>2023-09-29 16:18:10 +0300
commit780ea76e276e7d30feea9af0cc7b95a53e374bfe (patch)
tree3f5e490cd433b36d98acaa95b5a29bfe12a15511
parentfix: Added missing file (diff)
downloadjohnlepikhin-guix-channel-780ea76e276e7d30feea9af0cc7b95a53e374bfe.tar.gz
feat: [WIP] Added rust-analyzer
-rw-r--r--johnlepikhin/packages/rust.scm6
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"))))