Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
880 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
jq,
lib,
moreutils,
shellcheck,
vscode-utils,
}:
vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = {
name = "shellcheck";
publisher = "timonwong";
version = "0.38.3";
sha256 = "sha256-qDispRN7jRIIsP+5lamyR+sNoOwTwl+55QftzO7WBm4=";
};
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 ];
};
}