depot/third_party/nixpkgs/pkgs/development/tools/analysis/tfsec/default.nix
Default email 3ec2fa6bfd Project import generated by Copybara.
GitOrigin-RevId: 0dde103318090f77ac95ef7fc26fe0cdd00fa0b3
2021-08-06 16:57:35 -05:00

31 lines
668 B
Nix

{ lib
, buildGoPackage
, fetchFromGitHub
}:
buildGoPackage rec {
pname = "tfsec";
version = "0.56.0";
src = fetchFromGitHub {
owner = "aquasecurity";
repo = pname;
rev = "v${version}";
sha256 = "0kv9g11jgbrbb50qhlfznw9i473gw8vadrrlkvki6y3cfcavghkv";
};
goPackagePath = "github.com/aquasecurity/tfsec";
ldflags = [
"-w"
"-s"
"-X ${goPackagePath}/version.Version=${version}"
];
meta = with lib; {
description = "Static analysis powered security scanner for terraform code";
homepage = "https://github.com/aquasecurity/tfsec";
license = licenses.mit;
maintainers = with maintainers; [ fab marsam ];
};
}