33 lib ,
44 vscode-utils ,
55 ruff ,
6+ vscode-extensions-update-script ,
67} :
78
89vscode-utils . buildVscodeMarketplaceExtension {
@@ -11,28 +12,29 @@ vscode-utils.buildVscodeMarketplaceExtension {
1112 sources = {
1213 "x86_64-linux" = {
1314 arch = "linux-x64" ;
14- hash = "sha256-XRdrZ+NHqtv7KCAvk0PX99SQxVDhdnbNOszqXdTnFnk =" ;
15+ hash = "sha256-lGV/Zc4pibm7sTVtN4UYzuroxNgUltaUT9oJPaa5S8Q =" ;
1516 } ;
1617 "x86_64-darwin" = {
1718 arch = "darwin-x64" ;
18- hash = "sha256-zeIcmlQTRugMNLqHTnxWvAd//CUqo1i4W4lPhzmZga8 =" ;
19+ hash = "sha256-h1cvTJ9VUHOL27F9twdbLTSzLb+NUhqrbaScoKF5jZ4 =" ;
1920 } ;
2021 "aarch64-linux" = {
2122 arch = "linux-arm64" ;
22- hash = "sha256-ynJjsvSywU8s81tifUun4wwxJTMBm+zNmZDeuMzWY2k =" ;
23+ hash = "sha256-Ca9DGjQDT5BbJUL7FtU3dS6Zb7C2Blxr69l5HpZR4ZQ =" ;
2324 } ;
2425 "aarch64-darwin" = {
2526 arch = "darwin-arm64" ;
26- hash = "sha256-rgdiYnhNMEoZwwN7jUJ/sucgSXSVqrJA+X3t0Sjv/Q8 =" ;
27+ hash = "sha256-8Qay/ynixASQ8FFyAYjBeGcjBKQGXucGlOndOYa1Fn8 =" ;
2728 } ;
2829 } ;
2930 in
3031 {
3132 name = "ruff" ;
3233 publisher = "charliermarsh" ;
33- version = "2025.14 .0" ;
34+ version = "2025.22 .0" ;
3435 }
35- // sources . ${ stdenvNoCC . system } or ( throw "Unsupported system ${ stdenvNoCC . system } " ) ;
36+ // sources . ${ stdenvNoCC . hostPlatform . system }
37+ or ( throw "Unsupported system ${ stdenvNoCC . hostPlatform . system } " ) ;
3638
3739 postInstall = ''
3840 test -x "$out/$installPrefix/bundled/libs/bin/ruff" || {
@@ -43,12 +45,20 @@ vscode-utils.buildVscodeMarketplaceExtension {
4345 ln -sf ${ lib . getExe ruff } "$out/$installPrefix/bundled/libs/bin/ruff"
4446 '' ;
4547
48+ passthru . updateScript = vscode-extensions-update-script { extraArgs = [ "--platforms" ] ; } ;
49+
4650 meta = {
4751 license = lib . licenses . mit ;
4852 changelog = "https://marketplace.visualstudio.com/items/charliermarsh.ruff/changelog" ;
4953 description = "Visual Studio Code extension with support for the Ruff linter" ;
5054 downloadPage = "https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff" ;
5155 homepage = "https://github.com/astral-sh/ruff-vscode" ;
56+ platforms = [
57+ "aarch64-linux"
58+ "aarch64-darwin"
59+ "x86_64-linux"
60+ "x86_64-darwin"
61+ ] ;
5262 maintainers = [ lib . maintainers . azd325 ] ;
5363 } ;
5464}
0 commit comments