diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 73d1f6f316ba..b072a318e2b1 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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"; 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"; + }; +}