1{
2 jq,
3 lib,
4 moreutils,
5 shellcheck,
6 vscode-utils,
7}:
8
9vscode-utils.buildVscodeMarketplaceExtension {
10 mktplcRef = {
11 name = "shellcheck";
12 publisher = "timonwong";
13 version = "0.38.1";
14 sha256 = "sha256-RWv10/5H1UKkm/t7rwq5pkuB3Dp0XhttIibVM9l5aL4=";
15 };
16 nativeBuildInputs = [
17 jq
18 moreutils
19 ];
20 postInstall = ''
21 cd "$out/$installPrefix"
22 jq '.contributes.configuration.properties."shellcheck.executablePath".default = "${shellcheck}/bin/shellcheck"' package.json | sponge package.json
23 '';
24 meta = {
25 description = "Integrates ShellCheck into VS Code, a linter for Shell scripts";
26 downloadPage = "https://marketplace.visualstudio.com/items?itemName=timonwong.shellcheck";
27 homepage = "https://github.com/vscode-shellcheck/vscode-shellcheck";
28 license = lib.licenses.mit;
29 maintainers = [ lib.maintainers.raroh73 ];
30 };
31}