nixpkgs/pkgs/development/tools/analysis/tfsec/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
666 B
Nix
Raw Normal View History

2021-07-14 21:06:20 +01:00
{ lib
, buildGoPackage
, fetchFromGitHub
}:
2019-11-24 09:20:00 +00:00
buildGoPackage rec {
pname = "tfsec";
2022-02-18 07:51:51 +00:00
version = "1.2.1";
2019-11-24 09:20:00 +00:00
src = fetchFromGitHub {
2021-07-14 21:06:20 +01:00
owner = "aquasecurity";
2019-11-24 09:20:00 +00:00
repo = pname;
rev = "v${version}";
2022-02-18 07:51:51 +00:00
sha256 = "sha256-KIS2o2pLus5aohRYsabWRxZs4KfYM6PXSNp0JZhhlZk=";
2019-11-24 09:20:00 +00:00
};
2021-07-14 21:06:20 +01:00
goPackagePath = "github.com/aquasecurity/tfsec";
2019-11-24 09:20:00 +00:00
2021-07-06 08:28:10 +01:00
ldflags = [
"-w"
"-s"
"-X ${goPackagePath}/version.Version=${version}"
];
2020-07-09 00:55:18 +01:00
2019-11-24 09:20:00 +00:00
meta = with lib; {
2021-07-14 21:06:20 +01:00
description = "Static analysis powered security scanner for terraform code";
homepage = "https://github.com/aquasecurity/tfsec";
2019-11-24 09:20:00 +00:00
license = licenses.mit;
2021-07-14 21:06:20 +01:00
maintainers = with maintainers; [ fab marsam ];
2019-11-24 09:20:00 +00:00
};
}