2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "tflint-ruleset-aws";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.30.0";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "terraform-linters";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-mgYvzxIzh/HibPM+BQoJ7dKqEifMcuoqfOIZU4KcRC4=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-JaOVNWF4JMXwGo+JVyknGZrd/M6F9c2PTgGadCqoRsk=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|