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

25 lines
639 B
Nix
Raw Normal View History

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