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-01-27 13:54:45 +01:00
version = "0.37.1";
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-01-27 13:54:45 +01:00
sha256 = "sha256-ZYJqnyIFwyPODFqXAZp1ep0Ofl/JH2F07gqPx4WZ7mo=";
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 ];
};
}