depot/third_party/nixpkgs/pkgs/development/tools/analysis/tfsec/default.nix
Default email b6f2ab0a42 Project import generated by Copybara.
GitOrigin-RevId: 253aecf69ed7595aaefabde779aa6449195bebb7
2021-08-18 15:19:15 +02:00

31 lines
667 B
Nix

{ lib
, buildGoPackage
, fetchFromGitHub
}:
buildGoPackage rec {
pname = "tfsec";
version = "0.58.4";
src = fetchFromGitHub {
owner = "aquasecurity";
repo = pname;
rev = "v${version}";
sha256 = "sha256-gnipQyjisi1iY1SSmESrwNvxyacq9fsva8IY3W6Gpd8=";
};
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 ];
};
}