Skip to content

Commit

Permalink
contrib/rust-analyzer: new package (2023.08.14)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekopsykose authored and q66 committed Aug 18, 2023
1 parent cc75004 commit 02ffc89
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions contrib/rust-analyzer/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
pkgname = "rust-analyzer"
pkgver = "2023.08.14"
pkgrel = 0
build_style = "cargo"
hostmakedepends = ["cargo"]
makedepends = ["rust"]
pkgdesc = "Rust compiler LSP server"
maintainer = "psykose <alice@ayaya.dev>"
license = "Apache-2.0 OR MIT"
url = "https://github.com/rust-lang/rust-analyzer"
source = f"{url}/archive/refs/tags/{pkgver.replace('.', '-')}.tar.gz"
sha256 = "3fa6d28ece1f8952c29a375aab41e50502d20c8a9c0c5f1e44a9576d8f635224"
# invokes rustfmt via rustup arg, also take longer to build than the actual
# build..
options = ["!check"]


def do_install(self):
self.cargo.install(wrksrc="crates/rust-analyzer")
self.install_license("LICENSE-MIT")
3 changes: 3 additions & 0 deletions contrib/rust-analyzer/update.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
url = "https://api.github.com/repos/rust-lang/rust-analyzer/git/refs/tags"
pattern = r"refs/tags/(\d+\-\d+\-\d+)"
ignore = ["nightly"]

0 comments on commit 02ffc89

Please sign in to comment.