My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/tools/analysis/tfsec/default.nix

32 lines
666 B

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