88abffb7d2
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
31 lines
668 B
Nix
31 lines
668 B
Nix
{ lib
|
|
, buildGoPackage
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoPackage rec {
|
|
pname = "tfsec";
|
|
version = "0.58.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aquasecurity";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1i61xls3jj5w3cliqs28m1y6p47yav24m40zxa6kf0jj4s50m1d3";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|