2019-11-24 09:20:00 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "tfsec";
|
2020-12-11 17:59:04 +00:00
|
|
|
version = "0.36.10";
|
2019-11-24 09:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-12-11 17:59:04 +00:00
|
|
|
owner = "tfsec";
|
2019-11-24 09:20:00 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-12-11 17:59:04 +00:00
|
|
|
sha256 = "11kv13d4cw515r79azfha1ksmvsha1rvg0jak9nvz9ggivyn0s7a";
|
2019-11-24 09:20:00 +00:00
|
|
|
};
|
|
|
|
|
2020-12-11 17:59:04 +00:00
|
|
|
goPackagePath = "github.com/tfsec/tfsec";
|
2019-11-24 09:20:00 +00:00
|
|
|
|
2020-07-09 00:55:18 +01:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/version.Version=${version}" ];
|
|
|
|
|
2019-11-24 09:20:00 +00:00
|
|
|
meta = with lib; {
|
2020-12-11 17:59:04 +00:00
|
|
|
homepage = "https://github.com/tfsec/tfsec";
|
2019-11-24 09:20:00 +00:00
|
|
|
description = "Static analysis powered security scanner for your terraform code";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|