{ lib, buildGoModule, fetchFromGitHub, }: buildGoModule rec { pname = "goctl"; version = "1.8.5"; src = fetchFromGitHub { owner = "zeromicro"; repo = "go-zero"; tag = "v${version}"; hash = "sha256-12nlrwzzM5wPyiC3vJfs7sJ7kPiRy1H0gTeWB+9bqKI="; }; vendorHash = "sha256-ReLXN4SUNQ7X0yHy8FFwD8lRRm05q2FdEdohXpfuZIY="; modRoot = "tools/goctl"; subPackages = [ "." ]; doCheck = true; ldflags = [ "-s" "-w" ]; meta = { description = "CLI handcuffle of go-zero, a cloud-native Go microservices framework"; longDescription = '' goctl is a go-zero's built-in handcuffle that is a major lever to increase development efficiency, generating code, document, deploying k8s yaml, dockerfile, etc. ''; homepage = "https://go-zero.dev"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ cococolanosugar ]; mainProgram = "goctl"; }; }