goctl: init at 1.8.3

Update pkgs/by-name/go/go-zero-cli/package.nix

Co-authored-by: Aleksana <alexander.huang.y@gmail.com>

goctl: init at 1.8.3
This commit is contained in:
George
2025-05-15 10:07:09 +00:00
parent a7b6b1ea1a
commit 8e7e2e274c
2 changed files with 48 additions and 0 deletions

View File

@@ -4811,6 +4811,12 @@
name = "Coca";
keys = [ { fingerprint = "99CB 86FF 62BB 7DA4 8903 B16D 0328 2DF8 8179 AB19"; } ];
};
cococolanosugar = {
name = "George Xu";
github = "cococolanosugar";
githubId = 1736138;
email = "cococolanosugar@gmail.com";
};
coconnor = {
email = "coreyoconnor@gmail.com";
github = "coreyoconnor";

View File

@@ -0,0 +1,42 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "goctl";
version = "1.8.3";
src = fetchFromGitHub {
owner = "zeromicro";
repo = "go-zero";
tag = "v${version}";
hash = "sha256-v5WzqMotF9C7i9hTYSjaPmTwveBVDVn+SKQXYuS4Rdc=";
};
vendorHash = "sha256-tOIlfYiAI9m7oTZyPDCzTXg9XTwBb6EOVLzDfZnzL4E=";
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";
};
}