about summary refs log tree commit diff
path: root/pkgs/applications/editors/vscode/extensions/default.nix
diff options
context:
space:
mode:
authorsuperherointj <5861043+superherointj@users.noreply.github.com>2024-04-11 10:09:22 -0300
committersuperherointj <5861043+superherointj@users.noreply.github.com>2024-04-16 11:13:58 -0300
commit354e22ca6bc0f86d461e49bfa3ed5ba3e2eaeb0a (patch)
tree1a45585e048ddc66f36806d6d33dd5d86fc264f2 /pkgs/applications/editors/vscode/extensions/default.nix
parent3e4358290ca54fa1503217b21fd8253356e5dde8 (diff)
vscode-extensions.timonwong.shellcheck: move to a directory
Diffstat (limited to 'pkgs/applications/editors/vscode/extensions/default.nix')
-rw-r--r--pkgs/applications/editors/vscode/extensions/default.nix22
1 files changed, 1 insertions, 21 deletions
diff --git a/pkgs/applications/editors/vscode/extensions/default.nix b/pkgs/applications/editors/vscode/extensions/default.nix
index ac4c679cbb4de..54bb48f393d74 100644
--- a/pkgs/applications/editors/vscode/extensions/default.nix
+++ b/pkgs/applications/editors/vscode/extensions/default.nix
@@ -11,7 +11,6 @@
 , llvmPackages_14
 , protobuf
 , jq
-, shellcheck
 , moreutils
 , autoPatchelfHook
 , zlib
@@ -4035,26 +4034,7 @@ let
         };
       };
 
-      timonwong.shellcheck = buildVscodeMarketplaceExtension {
-        mktplcRef = {
-          name = "shellcheck";
-          publisher = "timonwong";
-          version = "0.37.0";
-          sha256 = "1d0blynn6c2hz4y9fk7b5wsa3x168gxyycr5d05zqp0rx520m5wc";
-        };
-        nativeBuildInputs = [ jq moreutils ];
-        postInstall = ''
-          cd "$out/$installPrefix"
-          jq '.contributes.configuration.properties."shellcheck.executablePath".default = "${shellcheck}/bin/shellcheck"' package.json | sponge package.json
-        '';
-        meta = {
-          description = "Integrates ShellCheck into VS Code, a linter for Shell scripts";
-          downloadPage = "https://marketplace.visualstudio.com/items?itemName=timonwong.shellcheck";
-          homepage = "https://github.com/vscode-shellcheck/vscode-shellcheck";
-          license = lib.licenses.mit;
-          maintainers = [ lib.maintainers.raroh73 ];
-        };
-      };
+      timonwong.shellcheck = callPackage ./timonwong.shellcheck { };
 
       tobiasalthoff.atom-material-theme = buildVscodeMarketplaceExtension {
         mktplcRef = {