81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
31 lines
666 B
Nix
31 lines
666 B
Nix
{ lib
|
|
, buildGoPackage
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoPackage rec {
|
|
pname = "tfsec";
|
|
version = "1.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aquasecurity";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-pJyITEIngSWTDGfCcm8Z6YD6Pkbum0Vk71hqWk+CnUc=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|