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