forked from mirrors/nixpkgs
8cea3c4866
TFSec github location changed. Also bumping the version to 0.36.10. Signed-off-by: Le Anh Duc <anhdle14@icloud.com>
25 lines
640 B
Nix
25 lines
640 B
Nix
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "tfsec";
|
|
version = "0.36.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tfsec";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "11kv13d4cw515r79azfha1ksmvsha1rvg0jak9nvz9ggivyn0s7a";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|