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

29 lines
645 B
Nix
Raw Normal View History

2019-11-24 09:20:00 +00:00
{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "tfsec";
2021-07-09 12:38:30 +00:00
version = "0.45.3";
2019-11-24 09:20:00 +00:00
src = fetchFromGitHub {
owner = "tfsec";
2019-11-24 09:20:00 +00:00
repo = pname;
rev = "v${version}";
2021-07-09 12:38:30 +00:00
sha256 = "sha256-I0TOddYO++tw26gS/h15FSATqCjdQfQXVYSTkV+r5HM=";
2019-11-24 09:20:00 +00:00
};
goPackagePath = "github.com/tfsec/tfsec";
2019-11-24 09:20:00 +00:00
2021-07-06 07:28:10 +00:00
ldflags = [
"-w"
"-s"
"-X ${goPackagePath}/version.Version=${version}"
];
2020-07-08 23:55:18 +00:00
2019-11-24 09:20:00 +00:00
meta = with lib; {
homepage = "https://github.com/tfsec/tfsec";
2019-11-24 09:20:00 +00:00
description = "Static analysis powered security scanner for your terraform code";
license = licenses.mit;
2021-07-06 07:28:10 +00:00
maintainers = with maintainers; [ marsam ];
2019-11-24 09:20:00 +00:00
};
}