diff options
author | Riey <creeper844@gmail.com> | 2021-04-12 16:06:42 +0900 |
---|---|---|
committer | Riey <creeper844@gmail.com> | 2021-04-13 03:05:22 +0900 |
commit | 62b44d8dfaf6b74a662563ee5eb806ee9f4b0379 (patch) | |
tree | dbaae732d65e9a6e35673742bff4db9ee4a131c6 /pkgs/development/tools/rust/rust-analyzer/default.nix | |
parent | 8fd3894d852b8cf2c65d1d2245fcf677b3483e28 (diff) | |
download | nixpkgs-62b44d8dfaf6b74a662563ee5eb806ee9f4b0379.tar nixpkgs-62b44d8dfaf6b74a662563ee5eb806ee9f4b0379.tar.gz nixpkgs-62b44d8dfaf6b74a662563ee5eb806ee9f4b0379.tar.bz2 nixpkgs-62b44d8dfaf6b74a662563ee5eb806ee9f4b0379.tar.lz nixpkgs-62b44d8dfaf6b74a662563ee5eb806ee9f4b0379.tar.xz nixpkgs-62b44d8dfaf6b74a662563ee5eb806ee9f4b0379.tar.zst nixpkgs-62b44d8dfaf6b74a662563ee5eb806ee9f4b0379.zip |
rust-analyzer: 2021-04-05 -> 2021-04-12
Diffstat (limited to 'pkgs/development/tools/rust/rust-analyzer/default.nix')
-rw-r--r-- | pkgs/development/tools/rust/rust-analyzer/default.nix | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/pkgs/development/tools/rust/rust-analyzer/default.nix b/pkgs/development/tools/rust/rust-analyzer/default.nix index cb10b8196aa..df4c4ad77d3 100644 --- a/pkgs/development/tools/rust/rust-analyzer/default.nix +++ b/pkgs/development/tools/rust/rust-analyzer/default.nix @@ -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 ''; |