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

25 lines
639 B
Nix
Raw Normal View History

2019-11-24 09:20:00 +00:00
{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "tfsec";
2021-07-03 22:19:44 +00:00
version = "0.40.7";
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-03 22:19:44 +00:00
sha256 = "1cdxpmlfh76k491ldzv2flxs2wikrryr63h0zw8f6yvhkpbqf4cc";
2019-11-24 09:20:00 +00:00
};
goPackagePath = "github.com/tfsec/tfsec";
2019-11-24 09:20:00 +00:00
2020-07-08 23:55:18 +00:00
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/version.Version=${version}" ];
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;
maintainers = [ maintainers.marsam ];
};
}