nixpkgs/pkgs/development/tools/analysis/tflint/default.nix

28 lines
809 B
Nix
Raw Normal View History

2020-03-21 11:16:00 +00:00
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
2019-06-17 03:02:03 +00:00
buildGoModule rec {
pname = "tflint";
version = "0.15.3";
2019-06-17 03:02:03 +00:00
src = fetchFromGitHub {
owner = "terraform-linters";
2019-06-17 03:02:03 +00:00
repo = pname;
rev = "v${version}";
sha256 = "1j56dadkyg483i2p4i76d4kdkm229yjiyariga96zxp3s4rl0fni";
2019-06-17 03:02:03 +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";
homepage = "https://github.com/terraform-linters/tflint";
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 ];
};
}