nixpkgs/pkgs/development/tools/analysis/tfsec/default.nix
2021-07-20 22:44:15 +02:00

32 lines
668 B
Nix

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