vscode-extensions.rust-lang.rust-analyzer: 0.3.2308 -> 0.3.2593

+9 -7
+4 -4
pkgs/applications/editors/vscode/extensions/rust-lang.rust-analyzer/default.nix
··· 20 20 # Use the plugin version as in vscode marketplace, updated by update script. 21 21 inherit (vsix) version; 22 22 23 - releaseTag = "2025-02-17"; 23 + releaseTag = "2025-08-25"; 24 24 25 25 src = fetchFromGitHub { 26 26 owner = "rust-lang"; 27 27 repo = "rust-analyzer"; 28 - rev = releaseTag; 29 - hash = "sha256-i76MMFSkCr4kDwurK8CACwZq7qEgVEgIzkOr2kiuAKk="; 28 + tag = releaseTag; 29 + hash = "sha256-apbJj2tsJkL2l+7Or9tJm1Mt5QPB6w/zIyDkCx8pfvk="; 30 30 }; 31 31 32 32 vsix = buildNpmPackage { 33 33 inherit pname releaseTag; 34 34 version = lib.trim (lib.readFile ./version.txt); 35 35 src = "${src}/editors/code"; 36 - npmDepsHash = "sha256-0frOGphtzO6z8neSEYfjyRYrM6zEO3wId/TACblZkxM="; 36 + npmDepsHash = "sha256-fV4Z3jj+v56A7wbIEYhVAPVuAMqMds5xSe3OetWAsbw="; 37 37 buildInputs = [ 38 38 pkgsBuildBuild.libsecret 39 39 ];
+4 -2
pkgs/applications/editors/vscode/extensions/rust-lang.rust-analyzer/update.sh
··· 21 21 exit 1 22 22 fi 23 23 24 - extension_ver=$(curl "https://github.com/$owner/$repo/releases/download/$ver/rust-analyzer-linux-x64.vsix" -L | 24 + vsix_url="https://github.com/$owner/$repo/releases/download/$ver/rust-analyzer-linux-x64.vsix" 25 + extension_ver=$(curl $vsix_url -L | 25 26 bsdtar -xf - --to-stdout extension/package.json | # Use bsdtar to extract vsix(zip). 26 27 jq --raw-output '.version') 27 - echo -n $extension_ver > version.txt 28 + echo $extension_ver > version.txt 28 29 echo "Extension version: $extension_ver" 29 30 30 31 echo "Remember to also update the releaseTag and hash in default.nix!" 32 + echo "The releaseTag should be set to $ver"
+1 -1
pkgs/applications/editors/vscode/extensions/rust-lang.rust-analyzer/version.txt
··· 1 - 0.3.2308 1 + 0.3.2593