rust-analyzer: 2021-04-05 -> 2021-04-12

This commit is contained in:
Riey
2021-04-13 03:05:22 +09:00
parent 8fd3894d85
commit 62b44d8dfa
2 changed files with 15 additions and 19 deletions
@@ -4,20 +4,16 @@
, doCheck ? true
}:
let
rev = "2021-04-05";
in
rustPlatform.buildRustPackage {
rustPlatform.buildRustPackage rec {
pname = "rust-analyzer-unwrapped";
version = "unstable-${rev}";
cargoSha256 = "sha256-kDwdKa08E0h24lOOa7ALeNqHlMjMry/ru1qwCIyKmuE=";
version = "2021-04-12";
cargoSha256 = "1mnx0mnfkvz6gmzy2jcl0wrdwd1mgfnrny4xf9wkd5vd4ks4k338";
src = fetchFromGitHub {
owner = "rust-analyzer";
repo = "rust-analyzer";
inherit rev;
sha256 = "sha256-ZDxy87F3uz8bTF1/2LIy5r4Nv/M3xe97F7mwJNEFcUs=";
rev = version;
sha256 = "1rg20aswbh9palwr3qfcnscsvzmbmhghn4k0nl11m9j7z6hva6bg";
};
buildAndTestSubdir = "crates/rust-analyzer";
@@ -31,7 +27,7 @@ rustPlatform.buildRustPackage {
libiconv
];
RUST_ANALYZER_REV = rev;
RUST_ANALYZER_REV = version;
inherit doCheck;
preCheck = lib.optionalString doCheck ''
@@ -43,7 +39,7 @@ rustPlatform.buildRustPackage {
runHook preInstallCheck
versionOutput="$($out/bin/rust-analyzer --version)"
echo "'rust-analyzer --version' returns: $versionOutput"
[[ "$versionOutput" == "rust-analyzer ${rev}" ]]
[[ "$versionOutput" == "rust-analyzer ${version}" ]]
runHook postInstallCheck
'';