tflint-plugins, tflint-plugins.tflint-ruleset-aws: init at 0.17.1

main
Florian Klink 2 years ago
parent 24312ec527
commit a7f9b63b5d
  1. 3
      pkgs/development/tools/analysis/tflint-plugins/default.nix
  2. 38
      pkgs/development/tools/analysis/tflint-plugins/tflint-ruleset-aws.nix
  3. 4
      pkgs/top-level/all-packages.nix

@ -0,0 +1,3 @@
{ callPackage, ... }: {
tflint-ruleset-aws = callPackage ./tflint-ruleset-aws.nix { };
}

@ -0,0 +1,38 @@
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "tflint-ruleset-aws";
version = "0.17.1";
src = fetchFromGitHub {
owner = "terraform-linters";
repo = pname;
rev = "v${version}";
hash = "sha256-2Qr+tG1cmDF9MdsLMOnIdSGWMVAYYVgobE/SuJZRqJg=";
};
vendorHash = "sha256-P3yqDqVoC6XCX5OJ8kTvIk6Qq8X02Be51TajIkZxdbI=";
# upstream Makefile also does a go test $(go list ./... | grep -v integration)
preCheck = ''
rm integration/integration_test.go
'';
postInstall = ''
mkdir -p $out/github.com/terraform-linters/${pname}/${version}
mv $out/bin/${pname} $out/github.com/terraform-linters/${pname}/${version}/
# remove other binaries from bin
rm -R $out/bin
'';
meta = with lib; {
homepage = "https://github.com/terraform-linters/tflint-ruleset-aws";
description = "TFLint ruleset plugin for Terraform AWS Provider";
platforms = platforms.unix;
maintainers = with maintainers; [ flokli ];
license = with licenses; [ mpl20 ];
};
}

@ -17630,6 +17630,10 @@ with pkgs;
tflint = callPackage ../development/tools/analysis/tflint { };
tflint-plugins = recurseIntoAttrs (
callPackage ../development/tools/analysis/tflint-plugins { }
);
tfsec = callPackage ../development/tools/analysis/tfsec { };
todoist = callPackage ../applications/misc/todoist { };

Loading…
Cancel
Save