24 lines
639 B
Nix
24 lines
639 B
Nix
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "tfsec";
|
|
version = "0.27.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "liamg";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "12n6l18g0kg28clzyzwc2lq9rnch3vshp07isgvfp7193bhf8hyv";
|
|
};
|
|
|
|
goPackagePath = "github.com/liamg/tfsec";
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/version.Version=${version}" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/liamg/tfsec";
|
|
description = "Static analysis powered security scanner for your terraform code";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|