2020-03-21 11:16:00 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
|
2019-06-17 03:02:03 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "tflint";
|
2020-03-22 09:20:00 +00:00
|
|
|
version = "0.15.3";
|
2019-06-17 03:02:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-11-16 17:00:00 +00:00
|
|
|
owner = "terraform-linters";
|
2019-06-17 03:02:03 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-03-22 09:20:00 +00:00
|
|
|
sha256 = "1j56dadkyg483i2p4i76d4kdkm229yjiyariga96zxp3s4rl0fni";
|
2019-06-17 03:02:03 +00:00
|
|
|
};
|
|
|
|
|
2020-03-22 09:20:00 +00:00
|
|
|
modSha256 = "14vgy5lavyp4w16g7wpi9xbni3js541rc3w9qn5ab3khqw5rdhgn";
|
2019-06-17 03:02:03 +00:00
|
|
|
|
2020-03-21 11:16:00 +00:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2019-06-17 03:02:03 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2020-03-21 11:16:00 +00:00
|
|
|
meta = with stdenv.lib; {
|
2019-06-17 03:02:03 +00:00
|
|
|
description = "Terraform linter focused on possible errors, best practices, and so on";
|
2019-11-16 17:00:00 +00:00
|
|
|
homepage = "https://github.com/terraform-linters/tflint";
|
2019-12-07 21:20:00 +00:00
|
|
|
changelog = "https://github.com/terraform-linters/tflint/releases/tag/v${version}";
|
2019-06-17 03:02:03 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|