Merge pull request #163050 from WolfangAukang/cloudformation-linter

This commit is contained in:
Sandro 2022-03-18 00:01:26 +01:00 committed by GitHub
commit 6cc306ec23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@
, vscode-utils
, asciidoctor
, nodePackages
, python3Packages
, jdk
, llvmPackages_8
, nixpkgs-fmt
@ -1313,6 +1314,33 @@ let
};
};
kddejong.vscode-cfn-lint = let
inherit (python3Packages) cfn-lint;
in buildVscodeMarketplaceExtension {
mktplcRef = {
name = "vscode-cfn-lint";
publisher = "kddejong";
version = "0.21.0";
sha256 = "sha256-IueXiN+077tiecAsVCzgYksWYTs00mZv6XJVMtRJ/PQ=";
};
nativeBuildInputs = [ jq moreutils ];
buildInputs = [ cfn-lint ];
postInstall = ''
cd "$out/$installPrefix"
jq '.contributes.configuration.properties."cfnLint.path".default = "${cfn-lint}/bin/cfn-lint"' package.json | sponge package.json
'';
meta = with lib; {
description = "CloudFormation Linter IDE integration, autocompletion, and documentation";
homepage = "https://github.com/aws-cloudformation/cfn-lint-visual-studio-code";
license = lib.licenses.asl20;
maintainers = with maintainers; [ wolfangaukang ];
};
};
kubukoz.nickel-syntax = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "nickel-syntax";