@@ -5,6 +5,7 @@
55, vscode-utils
66, asciidoctor
77, nodePackages
8+, python3Packages
89, jdk
910, llvmPackages_8
1011, nixpkgs-fmt
@@ -1313,6 +1314,33 @@ let
13131314 };
13141315 };
13151316
1317+ kddejong.vscode-cfn-lint = let
1318+ inherit (python3Packages) cfn-lint;
1319+ in buildVscodeMarketplaceExtension {
1320+ mktplcRef = {
1321+ name = "vscode-cfn-lint";
1322+ publisher = "kddejong";
1323+ version = "0.21.0";
1324+ sha256 = "sha256-IueXiN+077tiecAsVCzgYksWYTs00mZv6XJVMtRJ/PQ=";
1325+ };
1326+
1327+ nativeBuildInputs = [ jq moreutils ];
1328+
1329+ buildInputs = [ cfn-lint ];
1330+
1331+ postInstall = ''
1332+ cd "$out/$installPrefix"
1333+ jq '.contributes.configuration.properties."cfnLint.path".default = "${cfn-lint}/bin/cfn-lint"' package.json | sponge package.json
1334+ '';
1335+
1336+ meta = with lib; {
1337+ description = "CloudFormation Linter IDE integration, autocompletion, and documentation";
1338+ homepage = "https://github.com/aws-cloudformation/cfn-lint-visual-studio-code";
1339+ license = lib.licenses.asl20;
1340+ maintainers = with maintainers; [ wolfangaukang ];
1341+ };
1342+ };
1343+
13161344 kubukoz.nickel-syntax = buildVscodeMarketplaceExtension {
13171345 mktplcRef = {
13181346 name = "nickel-syntax";