multica-cli: init at 0.2.21 (#515109)

This commit is contained in:
Adam C. Stephens
2026-05-01 21:14:16 +00:00
committed by GitHub
2 changed files with 60 additions and 0 deletions
+6
View File
@@ -1015,6 +1015,12 @@
githubId = 56970006;
keys = [ { fingerprint = "50E2 669C AB38 2F4A 5F72 1667 0D6B FC01 D45E DADD"; } ];
};
akosseres = {
name = "Ákos Seres";
email = "seresakos2000@gmail.com";
github = "AkosSeres";
githubId = 11257907;
};
akotro = {
name = "Antonis Kotronakis";
email = "mail@akotro.dev";
+54
View File
@@ -0,0 +1,54 @@
{
lib,
buildGoModule,
fetchFromGitHub,
installShellFiles,
}:
buildGoModule rec {
__structuredAttrs = true;
pname = "multica-cli";
version = "0.2.21";
src = fetchFromGitHub {
owner = "multica-ai";
repo = "multica";
rev = "v${version}";
hash = "sha256-13xhPBLV3aWf5ESn4L2rGXXFTrYVejF+HQnTCGlE1bg=";
};
sourceRoot = "${src.name}/server";
vendorHash = "sha256-1rifzInFK8od9XAYWEuHU16ni2+gaDhlDIHc7WeuLU4=";
subPackages = [ "cmd/multica" ];
env.CGO_ENABLED = 0;
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
"-X main.commit=nixpkg"
"-X main.date=1970-01-01T00:00:00Z"
];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd multica \
--bash <($out/bin/multica completion bash) \
--zsh <($out/bin/multica completion zsh) \
--fish <($out/bin/multica completion fish)
'';
meta = {
description = "CLI for the Multica managed agents platform";
homepage = "https://github.com/multica-ai/multica";
changelog = "https://github.com/multica-ai/multica/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ akosseres ];
mainProgram = "multica";
};
}