2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "tflint-ruleset-aws";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.26.0";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "terraform-linters";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-SKPmD34a11ynNmnD2cDTSXgRpUZ7tukaGRO8PQY6T5s=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-JhAAyfDVRZS2QyvXNa61srlZKgsBFeKloeKbcXXpytk=";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
# 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";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/terraform-linters/tflint-ruleset-aws/blob/v${version}/CHANGELOG.md";
|
2022-10-21 18:38:19 +00:00
|
|
|
description = "TFLint ruleset plugin for Terraform AWS Provider";
|
|
|
|
maintainers = with maintainers; [ flokli ];
|
|
|
|
license = with licenses; [ mpl20 ];
|
|
|
|
};
|
|
|
|
}
|