cagent: init at 1.19.0

This commit is contained in:
Mohamed Hisham Abdelzaher
2026-01-25 19:54:25 +02:00
parent 644351e2b3
commit a2e2477038
+54
View File
@@ -0,0 +1,54 @@
{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "cagent";
version = "1.19.0";
src = fetchFromGitHub {
owner = "docker";
repo = "cagent";
tag = "v${finalAttrs.version}";
hash = "sha256-J7IRlSsjXRDvbUKwnV2rrWnEmvqciJw3mN8NerQBtl4=";
};
vendorHash = "sha256-q7mP9JWJEdDbUO/3MHsJwiySNvN2SbhnhEbJArnCW3M=";
# Disable tests: Networked model providers and writable cache directories are required.
doCheck = false;
# Skip install checks on macOS: The build sandbox is missing the `/etc/protocols` file, which is required for validation.
doInstallCheck = !stdenv.hostPlatform.isDarwin;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "version";
ldflags = [
"-s"
"-w"
"-X"
"github.com/docker/cagent/pkg/version.Version=${finalAttrs.version}"
"-X"
"github.com/docker/cagent/pkg/version.Commit=${finalAttrs.src.tag}"
];
meta = {
description = "Agent Builder and Runtime by Docker Engineering";
longDescription = ''
A powerful, easy-to-use, customizable multi-agent runtime that
orchestrates AI agents with specialized capabilities and tools,
and the interactions between agents.
'';
homepage = "https://github.com/docker/cagent";
changelog = "https://github.com/docker/cagent/releases/tag/v${finalAttrs.version}";
downloadPage = "https://github.com/docker/cagent/releases";
license = lib.licenses.asl20;
mainProgram = "cagent";
maintainers = with lib.maintainers; [ MH0386 ];
};
})