stdenv: fix documentation for stripAllFlags and stripDebugFlags (#352127)
[NixPkgs.git] / pkgs / development / tools / analysis / tflint-plugins / tflint-ruleset-google.nix
blob07792ae475cb3b346b3c85834da5f89a7f4d4c87
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
7 buildGoModule rec {
8   pname = "tflint-ruleset-google";
9   version = "0.30.0";
11   src = fetchFromGitHub {
12     owner = "terraform-linters";
13     repo = pname;
14     rev = "v${version}";
15     hash = "sha256-eE1KSfbMbNuHlzEi7+zTRdxq548+pB8p01iIWoE2NAQ=";
16   };
18   vendorHash = "sha256-nuucBbqS+D12JEPoS/QHHTcPKaTjsD4oxnVLDMmLwNA=";
20   # upstream Makefile also does a go test $(go list ./... | grep -v integration)
21   preCheck = ''
22     rm integration/integration_test.go
23   '';
25   subPackages = [ "." ];
27   postInstall = ''
28     mkdir -p $out/github.com/terraform-linters/${pname}/${version}
29     mv $out/bin/${pname} $out/github.com/terraform-linters/${pname}/${version}/
30   '';
32   meta = with lib; {
33     homepage = "https://github.com/terraform-linters/tflint-ruleset-google";
34     description = "TFLint ruleset plugin for Terraform Google Provider";
35     platforms = platforms.unix;
36     maintainers = with maintainers; [ john-rodewald ];
37     license = with licenses; [ mpl20 ];
38   };