mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
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:
@@ -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";
|
||||
|
||||
42
pkgs/by-name/go/goctl/package.nix
Normal file
42
pkgs/by-name/go/goctl/package.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user