{ lib , buildGoPackage , fetchFromGitHub }: buildGoPackage rec { pname = "tfsec"; version = "0.55.0"; src = fetchFromGitHub { owner = "aquasecurity"; repo = pname; rev = "v${version}"; sha256 = "1l71r9il45svdwydvi08hnyh310j0gha11qhyqvdz14d8czf8ahn"; }; 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 ]; }; }