25 lines
638 B
Nix
Raw Normal View History

2019-11-24 04:20:00 -05:00
{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "tfsec";
2021-03-17 18:58:38 +00:00
version = "0.39.8";
2019-11-24 04:20:00 -05:00
src = fetchFromGitHub {
owner = "tfsec";
2019-11-24 04:20:00 -05:00
repo = pname;
rev = "v${version}";
2021-03-17 18:58:38 +00:00
sha256 = "sha256-7LC7QT92Ecva/uQPwYEfbLQUpIesxa8pXrauMxIwZ98=";
2019-11-24 04:20:00 -05:00
};
goPackagePath = "github.com/tfsec/tfsec";
2019-11-24 04:20:00 -05:00
2020-07-08 18:55:18 -05:00
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/version.Version=${version}" ];
2019-11-24 04:20:00 -05:00
meta = with lib; {
homepage = "https://github.com/tfsec/tfsec";
2019-11-24 04:20:00 -05:00
description = "Static analysis powered security scanner for your terraform code";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
}