nongnu: Add claude-code-acp.

* nongnu/packages/claude-code.scm (claude-code-acp): New variable.
This commit is contained in:
Danny Milosavljevic 2025-12-26 01:07:50 +00:00
parent 7913b241a7
commit a9358fc41d
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -3269,3 +3269,65 @@ Workers, supporting drafts 4, 7, 2019-09, and 2020-12.")
models to external tools and data sources.")
(license license:expat)))
(define-public claude-code-acp
(package
(name "claude-code-acp")
(version "0.12.6")
(source
(origin
(method url-fetch)
(uri (string-append
"https://registry.npmjs.org/@zed-industries/claude-code-acp/-/claude-code-acp-"
version ".tgz"))
(sha256
(base32 "0d5q8yvapx4yh725si6fjgbszs6an0s8lab8p6iymca4qabpglxk"))))
(build-system node-build-system)
(arguments
(list
#:tests? #f
#:phases
#~(modify-phases %standard-phases
(add-after 'patch-dependencies 'delete-dev-dependencies
(lambda _
(modify-json (delete-dev-dependencies))))
(add-after 'delete-dev-dependencies 'delete-build-scripts
(lambda _
(with-atomic-json-file-replacement
(lambda (pkg)
(map (lambda (kv)
(if (equal? (car kv) "scripts")
(cons "scripts"
(filter
(lambda (s)
(not
(member (car s)
'("build" "prepare"
"prepack" "postinstall"))))
(cdr kv)))
kv))
pkg)))))
(delete 'build)
(delete 'validate-runpath))))
(inputs
(list
node-agentclientprotocol-sdk
node-anthropic-ai-claude-agent-sdk
node-modelcontextprotocol-sdk
node-diff
node-minimatch
node-zod
node-ajv
node-ajv-formats
node-express
node-raw-body
node-hono
node-hono-node-server))
(home-page "https://www.npmjs.com/package/@zed-industries/claude-code-acp")
(synopsis "ACP-compatible Claude Code agent")
(description "This package provides an ACP-compatible coding agent powered by the
Claude Code SDK.")
(license license:asl2.0)))
;; Binary URL is from the official install script at
;; <https://claude.ai/install.sh>.