summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/vscode
diff options
context:
space:
mode:
authorPol Dellaiera <pol.dellaiera@protonmail.com>2024-07-20 19:45:55 +0200
committerPol Dellaiera <pol.dellaiera@protonmail.com>2024-07-20 19:45:55 +0200
commita174092571796e7c624b9bca4161a0ec50cb303d (patch)
tree37d41062c97544c54d9d338095bc5312316b257f /pkgs/applications/editors/vscode
parentf38f92579392193c66410f3edc1415f0243ba736 (diff)
vscode-extensions.charliermarsh.ruff: 2024.4.0 -> 2024.34.0
Diffstat (limited to 'pkgs/applications/editors/vscode')
-rw-r--r--pkgs/applications/editors/vscode/extensions/charliermarsh.ruff/default.nix44
-rw-r--r--pkgs/applications/editors/vscode/extensions/default.nix38
2 files changed, 45 insertions, 37 deletions
diff --git a/pkgs/applications/editors/vscode/extensions/charliermarsh.ruff/default.nix b/pkgs/applications/editors/vscode/extensions/charliermarsh.ruff/default.nix
new file mode 100644
index 000000000000..d54b702e5175
--- /dev/null
+++ b/pkgs/applications/editors/vscode/extensions/charliermarsh.ruff/default.nix
@@ -0,0 +1,44 @@
+{
+ stdenvNoCC,
+ lib,
+ vscode-utils,
+}:
+
+vscode-utils.buildVscodeMarketplaceExtension {
+ mktplcRef =
+ let
+ sources = {
+ "x86_64-linux" = {
+ arch = "linux-x64";
+ hash = "sha256-KiCTJbLDut0Az7BmcYPQbFweT94RWnsE+JYvqVZ2P7s=";
+ };
+ "x86_64-darwin" = {
+ arch = "darwin-x64";
+ hash = "sha256-Szy+bE/42cNzcEa2yKCyvxr5OBqH2dPVgJnCS57z3nY=";
+ };
+ "aarch64-linux" = {
+ arch = "linux-arm64";
+ hash = "sha256-Bw1gdrb40baSXdrIgM0tlCLa18aGpRv1q7YN5wJRjNs=";
+ };
+ "aarch64-darwin" = {
+ arch = "darwin-arm64";
+ hash = "sha256-xcHL/2dliPD69mNEsbEpbtn5QLV1P3gqu9ftDOn58qM=";
+ };
+ };
+ in
+ {
+ name = "ruff";
+ publisher = "charliermarsh";
+ version = "2024.34.0";
+ }
+ // sources.${stdenvNoCC.system} or (throw "Unsupported system ${stdenvNoCC.system}");
+
+ meta = {
+ license = lib.licenses.mit;
+ changelog = "https://marketplace.visualstudio.com/items/charliermarsh.ruff/changelog";
+ description = "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";
+ maintainers = [ lib.maintainers.azd325 ];
+ };
+}
diff --git a/pkgs/applications/editors/vscode/extensions/default.nix b/pkgs/applications/editors/vscode/extensions/default.nix
index c047d5aa742c..1353e1307970 100644
--- a/pkgs/applications/editors/vscode/extensions/default.nix
+++ b/pkgs/applications/editors/vscode/extensions/default.nix
@@ -887,43 +887,7 @@ let
};
};
- charliermarsh.ruff = buildVscodeMarketplaceExtension {
- mktplcRef =
- let
- sources = {
- "x86_64-linux" = {
- arch = "linux-x64";
- hash = "sha256-2c0tH/MlDOqeyffcV8ZCy4woogBTcf1GCuPPO8JXaWc=";
- };
- "x86_64-darwin" = {
- arch = "darwin-x64";
- hash = "sha256-euvGIlO7931N56R5BWKu3F9nSEoDgf+DXk7Hgl1qSUw=";
- };
- "aarch64-linux" = {
- arch = "linux-arm64";
- hash = "sha256-dGpIHChnfrQbxRZDuoAi4imgStyyPdxdvTQ3lknMYu0=";
- };
- "aarch64-darwin" = {
- arch = "darwin-arm64";
- hash = "sha256-tElX4C0I5AmpxSHMtqOsxSAUImD1tqArB5fnvhw4LFc=";
- };
- };
- in
- {
- name = "ruff";
- publisher = "charliermarsh";
- version = "2024.4.0";
- }
- // sources.${stdenv.system} or (throw "Unsupported system ${stdenv.system}");
- meta = {
- license = lib.licenses.mit;
- changelog = "https://marketplace.visualstudio.com/items/charliermarsh.ruff/changelog";
- description = "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";
- maintainers = [ lib.maintainers.azd325 ];
- };
- };
+ charliermarsh.ruff = callPackage ./charliermarsh.ruff { };
cameron.vscode-pytest = buildVscodeMarketplaceExtension {
mktplcRef = {