2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "tflint-ruleset-google";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.27.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "terraform-linters";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-APdAm7gBEA6LHYV3u7j3HtFmzkUqeABqOj5q3rwPO40=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-n+nnftyNvCGVgEkYQIfVL7TS2QP8WpKb7l9jfeutJxw=";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
# upstream Makefile also does a go test $(go list ./... | grep -v integration)
|
|
|
|
preCheck = ''
|
|
|
|
rm integration/integration_test.go
|
|
|
|
'';
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/github.com/terraform-linters/${pname}/${version}
|
|
|
|
mv $out/bin/${pname} $out/github.com/terraform-linters/${pname}/${version}/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/terraform-linters/tflint-ruleset-google";
|
|
|
|
description = "TFLint ruleset plugin for Terraform Google Provider";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ john-rodewald ];
|
|
|
|
license = with licenses; [ mpl20 ];
|
|
|
|
};
|
|
|
|
}
|