about summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorDataHearth <dev@antoine-langlois.net>2024-01-25 16:44:02 +0100
committerDataHearth <dev@antoine-langlois.net>2024-02-18 18:12:52 +0100
commit2c3ea631119f97577a4cd4e53fac744c9c2f2e9e (patch)
tree863a7aea3388eb1034ccec5f15e1adbba0326004 /pkgs/applications/editors
parenta009772b6fdba0771a1b283e5c42c1d788d2615f (diff)
downloadnixlib-2c3ea631119f97577a4cd4e53fac744c9c2f2e9e.tar
nixlib-2c3ea631119f97577a4cd4e53fac744c9c2f2e9e.tar.gz
nixlib-2c3ea631119f97577a4cd4e53fac744c9c2f2e9e.tar.bz2
nixlib-2c3ea631119f97577a4cd4e53fac744c9c2f2e9e.tar.lz
nixlib-2c3ea631119f97577a4cd4e53fac744c9c2f2e9e.tar.xz
nixlib-2c3ea631119f97577a4cd4e53fac744c9c2f2e9e.tar.zst
nixlib-2c3ea631119f97577a4cd4e53fac744c9c2f2e9e.zip
vscode-extensions.charliermarsh.ruff: 2023.60.0 -> 2024.4.0
New version is available and hash mismatchs on certain arch due to
different vsix downloaded by vscode on various CPU architecture.
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/vscode/extensions/default.nix32
1 files changed, 25 insertions, 7 deletions
diff --git a/pkgs/applications/editors/vscode/extensions/default.nix b/pkgs/applications/editors/vscode/extensions/default.nix
index 959fd9ffce62..f12dfe5564f7 100644
--- a/pkgs/applications/editors/vscode/extensions/default.nix
+++ b/pkgs/applications/editors/vscode/extensions/default.nix
@@ -787,18 +787,36 @@ let
       };
 
       charliermarsh.ruff = buildVscodeMarketplaceExtension {
-        mktplcRef = {
+        mktplcRef = let
+          sources = {
+            "x86_64-linux" = {
+              arch = "linux-x64";
+              sha256 = "sha256-2c0tH/MlDOqeyffcV8ZCy4woogBTcf1GCuPPO8JXaWc=";
+            };
+            "x86_64-darwin" = {
+              arch = "darwin-x64";
+              sha256 = "sha256-euvGIlO7931N56R5BWKu3F9nSEoDgf+DXk7Hgl1qSUw=";
+            };
+            "aarch64-linux" = {
+              arch = "linux-arm64";
+              sha256 = "sha256-dGpIHChnfrQbxRZDuoAi4imgStyyPdxdvTQ3lknMYu0=";
+            };
+            "aarch64-darwin" = {
+              arch = "darwin-arm64";
+              sha256 = "sha256-tElX4C0I5AmpxSHMtqOsxSAUImD1tqArB5fnvhw4LFc=";
+            };
+          };
+        in {
           name = "ruff";
           publisher = "charliermarsh";
-          version = "2023.60.0";
-          sha256 = "sha256-qgwud2gzHLHID45VxDlngFMoks5O3pTHQe+Q7bdf8+I=";
-        };
+          version = "2024.4.0";
+        } // sources.${stdenv.system} or (throw "Unsupported system ${stdenv.system}");
         meta = {
           license = lib.licenses.mit;
-          changelog = "https://github.com/astral-sh/ruff-vscode/releases";
-          description = "Ruff extension for Visual Studio Code";
+          changelog = "https://marketplace.visualstudio.com/items/charliermarsh.ruff/changelog";
+          description = "A Visual Studio Code extension with support for the Ruff linter.";
           downloadPage = "https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff";
-          homepage = "https://github.com/astral-sh/ruff-vscode/";
+          homepage = "https://github.com/astral-sh/ruff-vscode";
           maintainers = [ lib.maintainers.azd325 ];
         };
       };