From 43bfa7ff9fecb35f7ce3c0968f24481cd1a58d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81kos=20Seres?= Date: Thu, 30 Apr 2026 13:59:05 +0200 Subject: [PATCH] multica-cli: init at 0.2.21 --- pkgs/by-name/mu/multica-cli/package.nix | 54 +++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 pkgs/by-name/mu/multica-cli/package.nix diff --git a/pkgs/by-name/mu/multica-cli/package.nix b/pkgs/by-name/mu/multica-cli/package.nix new file mode 100644 index 000000000000..eefc862af298 --- /dev/null +++ b/pkgs/by-name/mu/multica-cli/package.nix @@ -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"; + }; +}