summary refs log blame commit diff
path: root/pkgs/development/tools/analysis/tfsec/default.nix
blob: 176dea9a7bd1c93a8f1a04cd0cf0aebb8a7f3f29 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                 


                    
                     

                         
                           

                        
                                                                    

    
                                                  
 




                                                    
 
                    

                                                                                
                           
                                                   

    
{ lib
, buildGoPackage
, fetchFromGitHub
}:

buildGoPackage rec {
  pname = "tfsec";
  version = "0.51.4";

  src = fetchFromGitHub {
    owner = "aquasecurity";
    repo = pname;
    rev = "v${version}";
    sha256 = "0l9b6hdcfcyn03y5wsfganb3h2vsnlrs9y3vahnnlx4rvv51ldwf";
  };

  goPackagePath = "github.com/aquasecurity/tfsec";

  ldflags = [
    "-w"
    "-s"
    "-X ${goPackagePath}/version.Version=${version}"
  ];

  meta = with lib; {
    description = "Static analysis powered security scanner for terraform code";
    homepage = "https://github.com/aquasecurity/tfsec";
    license = licenses.mit;
    maintainers = with maintainers; [ fab marsam ];
  };
}