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

25 lines
639 B
Nix
Raw Normal View History

2019-11-24 12:20:00 +03:00
{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "tfsec";
version = "0.38.3";
2019-11-24 12:20:00 +03:00
src = fetchFromGitHub {
owner = "tfsec";
2019-11-24 12:20:00 +03:00
repo = pname;
rev = "v${version}";
sha256 = "0vw62cagggqpv3q68ypz3wykhyghz6dzl59hxsahy8lr9b1npy8a";
2019-11-24 12:20:00 +03:00
};
goPackagePath = "github.com/tfsec/tfsec";
2019-11-24 12:20:00 +03:00
2020-07-09 02:55:18 +03:00
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/version.Version=${version}" ];
2019-11-24 12:20:00 +03:00
meta = with lib; {
homepage = "https://github.com/tfsec/tfsec";
2019-11-24 12:20:00 +03:00
description = "Static analysis powered security scanner for your terraform code";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
}