biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / analysis / tflint-plugins / tflint-ruleset-google.nix
bloba1382df1c4f0e94ef99240b27db024dbec9786f1
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "tflint-ruleset-google";
8   version = "0.27.1";
10   src = fetchFromGitHub {
11     owner = "terraform-linters";
12     repo = pname;
13     rev = "v${version}";
14     hash = "sha256-APdAm7gBEA6LHYV3u7j3HtFmzkUqeABqOj5q3rwPO40=";
15   };
17   vendorHash = "sha256-n+nnftyNvCGVgEkYQIfVL7TS2QP8WpKb7l9jfeutJxw=";
19   # upstream Makefile also does a go test $(go list ./... | grep -v integration)
20   preCheck = ''
21     rm integration/integration_test.go
22   '';
24   subPackages = [ "." ];
26   postInstall = ''
27     mkdir -p $out/github.com/terraform-linters/${pname}/${version}
28     mv $out/bin/${pname} $out/github.com/terraform-linters/${pname}/${version}/
29   '';
31   meta = with lib; {
32     homepage = "https://github.com/terraform-linters/tflint-ruleset-google";
33     description = "TFLint ruleset plugin for Terraform Google Provider";
34     platforms = platforms.unix;
35     maintainers = with maintainers; [ john-rodewald ];
36     license = with licenses; [ mpl20 ];
37   };