{ lib, buildGoPackage, fetchFromGitHub }: buildGoPackage rec { pname = "tfsec"; version = "0.38.3"; src = fetchFromGitHub { owner = "tfsec"; repo = pname; rev = "v${version}"; sha256 = "0vw62cagggqpv3q68ypz3wykhyghz6dzl59hxsahy8lr9b1npy8a"; }; goPackagePath = "github.com/tfsec/tfsec"; buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/version.Version=${version}" ]; meta = with lib; { homepage = "https://github.com/tfsec/tfsec"; description = "Static analysis powered security scanner for your terraform code"; license = licenses.mit; maintainers = [ maintainers.marsam ]; }; }