25 lines
638 B
Nix
25 lines
638 B
Nix
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "tfsec";
|
|
version = "0.39.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tfsec";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-2P+/y3iP/eMGGc0W1lHWWxO+uMy5gvlvjKzZ/8maJ9o=";
|
|
};
|
|
|
|
goPackagePath = "github.com/tfsec/tfsec";
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/version.Version=${version}" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/tfsec/tfsec";
|
|
description = "Static analysis powered security scanner for your terraform code";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|