8d28093ffb
GitOrigin-RevId: 31ffc50c571e6683e9ecc9dbcbd4a8e9914b4497
31 lines
668 B
Nix
31 lines
668 B
Nix
{ lib
|
|
, buildGoPackage
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoPackage rec {
|
|
pname = "tfsec";
|
|
version = "0.58.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aquasecurity";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-VMnc4frDBAkVc9hqUdXAiJ2vNsK9NzkLOUaQWhQQUBU=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|