-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contrib/rust-analyzer: new package (2023.07.31)
- Loading branch information
1 parent
67e36d2
commit 117bb07
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
pkgname = "rust-analyzer" | ||
_pver = "2023-08-07" | ||
pkgver = _pver.replace("-", ".") | ||
pkgrel = 0 | ||
build_style = "cargo" | ||
hostmakedepends = ["cargo"] | ||
makedepends = ["rust"] | ||
cargo_build_path = "crates/rust-analyzer" | ||
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/{_pver}.tar.gz" | ||
sha256 = "2c6ce63d3fa060d7715d2a5306fd7bf237f054663e0f08de34bda8697914295e" | ||
# invokes rustfmt via rustup arg, also take longer to build than the actual | ||
# build.. | ||
options = ["!check"] | ||
|
||
|
||
def post_install(self): | ||
self.install_license("LICENSE-MIT") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |