biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / analysis / tflint-plugins / tflint-ruleset-aws.nix
blob92a35d9b3bc3d66442f41784068fb5ecd6e13ca8
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "tflint-ruleset-aws";
8   version = "0.30.0";
10   src = fetchFromGitHub {
11     owner = "terraform-linters";
12     repo = pname;
13     rev = "v${version}";
14     hash = "sha256-mgYvzxIzh/HibPM+BQoJ7dKqEifMcuoqfOIZU4KcRC4=";
15   };
17   vendorHash = "sha256-JaOVNWF4JMXwGo+JVyknGZrd/M6F9c2PTgGadCqoRsk=";
19   # upstream Makefile also does a  go test $(go list ./... | grep -v integration)
20   preCheck = ''
21     rm integration/integration_test.go
22   '';
24   postInstall = ''
25     mkdir -p $out/github.com/terraform-linters/${pname}/${version}
26     mv $out/bin/${pname} $out/github.com/terraform-linters/${pname}/${version}/
27     # remove other binaries from bin
28     rm -R $out/bin
29   '';
31   meta = with lib; {
32     homepage = "https://github.com/terraform-linters/tflint-ruleset-aws";
33     changelog = "https://github.com/terraform-linters/tflint-ruleset-aws/blob/v${version}/CHANGELOG.md";
34     description = "TFLint ruleset plugin for Terraform AWS Provider";
35     maintainers = with maintainers; [ flokli ];
36     license = with licenses; [ mpl20 ];
37   };