summaryrefslogtreecommitdiff
path: root/gnu/packages/rust-sources.scm
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@friendly-machines.com>2026-04-26 17:47:37 +0200
committerDanny Milosavljevic <dannym@friendly-machines.com>2026-04-26 22:47:11 +0200
commita1a82d252573dde7694078006f93cec12d7acb37 (patch)
tree25e562596dc110d0da625f0c20ca8235231c736d /gnu/packages/rust-sources.scm
parentecda809fd454fa1574616ecfcd695678238e3aca (diff)
gnu: codex: Update to 0.124.0.
* gnu/packages/patches/rust-codex-0.124.0-code-mode-stub-toolname.patch: New file. * gnu/packages/patches/rust-codex-0.124.0-remove-patch-sections.patch: New file. * gnu/local.mk (dist_patch_DATA): Add references to them. * gnu/packages/codex.scm (codex): Update to 0.124.0. * gnu/packages/rust-crates.scm: Update. * gnu/packages/rust-sources.scm (rust-codex-0.124.0): New variable. Change-Id: I90570206d39c533edfc6d70e229ee3f7eda9dcf2
Diffstat (limited to 'gnu/packages/rust-sources.scm')
-rw-r--r--gnu/packages/rust-sources.scm162
1 files changed, 162 insertions, 0 deletions
diff --git a/gnu/packages/rust-sources.scm b/gnu/packages/rust-sources.scm
index 827f9340fba..9c1d2d7c38a 100644
--- a/gnu/packages/rust-sources.scm
+++ b/gnu/packages/rust-sources.scm
@@ -1537,6 +1537,168 @@ repository, used as dependencies by codex-acp.")
1537and runtime for AI-assisted coding.") 1537and runtime for AI-assisted coding.")
1538 (license license:asl2.0)))) 1538 (license license:asl2.0))))
1539 1539
1540(define-public rust-codex-0.124.0
1541 (hidden-package
1542 (package
1543 (inherit rust-codex-0.120.0)
1544 (version "0.124.0")
1545 (source
1546 (origin
1547 (method git-fetch)
1548 (uri (git-reference
1549 (url "https://github.com/openai/codex")
1550 (commit "e9fb49366c93a1478ec71cc41ecee415a197d036")))
1551 (file-name (git-file-name "rust-codex" "0.124.0"))
1552 (sha256
1553 (base32 "06il60npjnc0h91afyp3wk725cgy3ywk3hx2sbvzdxx6037z6nb0"))
1554 (modules '((guix build utils)))
1555 (snippet '(begin
1556 ;;; These are JSON manifests with a dotslash
1557 ;;; shebang that download and run pre-built
1558 ;;; binaries (ripgrep, bash) at runtime.
1559 (delete-file "codex-cli/bin/rg")
1560 ;; Bundled bubblewrap source tree; includes a
1561 ;; compiled BPF blob (demos/flatpak.bpf).
1562 (delete-file-recursively "codex-rs/vendor/bubblewrap")))
1563 (patches (search-patches
1564 "codex-acp-0.11.1-disable-code-mode.patch"
1565 "rust-codex-0.124.0-code-mode-stub-toolname.patch"
1566 "rust-codex-0.124.0-remove-patch-sections.patch"
1567 "rust-codex-0.120.0-remove-libwebrtc.patch"))))
1568 (arguments
1569 (substitute-keyword-arguments (package-arguments rust-codex-0.120.0)
1570 ;; 0.124 differs from 0.120 by a single removal
1571 ;; (codex-instructions) and ten additions placed at topo-correct
1572 ;; positions; the order also shifts in a few spots to satisfy new
1573 ;; deps (e.g. codex-utils-cargo-bin moves before codex-app-server-
1574 ;; protocol). Replace the whole list rather than computing a
1575 ;; delta against the inherited one.
1576 ((#:cargo-package-crates _)
1577 ''(;; Topologically sorted by internal dependency order.
1578 "codex-async-utils"
1579 "codex-utils-absolute-path"
1580 "codex-execpolicy"
1581 "codex-utils-home-dir"
1582 "codex-utils-rustls-provider"
1583 "codex-network-proxy"
1584 "codex-utils-cache"
1585 "codex-utils-image"
1586 "codex-utils-string"
1587 "codex-utils-template"
1588 "codex-protocol"
1589 "codex-agent-identity"
1590 "codex-experimental-api-macros"
1591 "codex-shell-command"
1592 "codex-utils-cargo-bin"
1593 "codex-app-server-protocol"
1594 "codex-client"
1595 "codex-api"
1596 "codex-otel"
1597 "codex-features"
1598 "codex-model-provider-info"
1599 "codex-utils-path"
1600 "codex-config"
1601 "codex-sandboxing"
1602 "codex-utils-pty"
1603 "codex-exec-server"
1604 "codex-git-utils"
1605 "codex-keyring-store"
1606 "codex-terminal-detection"
1607 "codex-login"
1608 "codex-utils-plugins"
1609 "codex-plugin"
1610 "codex-analytics"
1611 "codex-ansi-escape"
1612 "codex-apply-patch"
1613 "codex-code-mode"
1614 "codex-connectors"
1615 "codex-skills"
1616 "codex-utils-output-truncation"
1617 "codex-core-skills"
1618 "codex-core-plugins"
1619 "codex-feedback"
1620 "codex-hooks"
1621 "codex-rmcp-client"
1622 "codex-mcp"
1623 "codex-aws-auth"
1624 "codex-model-provider"
1625 "codex-collaboration-mode-templates"
1626 "codex-response-debug-context"
1627 "codex-models-manager"
1628 "codex-file-search"
1629 "codex-state"
1630 "codex-rollout"
1631 "codex-rollout-trace"
1632 "codex-secrets"
1633 "codex-shell-escalation"
1634 "codex-thread-store"
1635 "codex-tools"
1636 "codex-utils-readiness"
1637 "codex-utils-stream-parser"
1638 "codex-windows-sandbox"
1639 "codex-core"
1640 "codex-linux-sandbox"
1641 "codex-arg0"
1642 "codex-backend-openapi-models"
1643 "codex-backend-client"
1644 "codex-utils-cli"
1645 "codex-chatgpt"
1646 "codex-cloud-requirements"
1647 "codex-device-key"
1648 "codex-utils-json-to-toml"
1649 "codex-app-server"
1650 "codex-app-server-client"
1651 "codex-app-server-test-client"
1652 "codex-cloud-tasks-client"
1653 "codex-cloud-tasks-mock-client"
1654 "codex-install-context"
1655 "codex-realtime-webrtc"
1656 "codex-utils-approval-presets"
1657 "codex-utils-elapsed"
1658 "codex-utils-fuzzy-match"
1659 "codex-lmstudio"
1660 "codex-ollama"
1661 "codex-utils-oss"
1662 "codex-utils-sandbox-summary"
1663 "codex-utils-sleep-inhibitor"
1664 "codex-exec"
1665 "codex-mcp-server"
1666 "codex-process-hardening"
1667 "codex-responses-api-proxy"
1668 "codex-uds"
1669 "codex-stdio-to-uds"
1670 "codex-debug-client"
1671 "codex-execpolicy-legacy"
1672 "codex-test-binary-support"))
1673 ((#:phases orig)
1674 ;; Two changes from the inherited phases:
1675 ;; (1) 'add-version-to-workspace-deps stamps the literal
1676 ;; 0.120.0 version inside its substitute pattern, so we
1677 ;; swap the whole phase for one stamping 0.124.0 (and
1678 ;; using a regex that also matches the codex_windows_
1679 ;; sandbox underscore alias introduced in 0.124).
1680 ;; (2) Add a new phase 'break-dev-dep-cycles to strip the
1681 ;; codex-test-binary-support dev-dep from exec-server and
1682 ;; core; it forms a cycle (test-binary-support -> arg0 ->
1683 ;; {exec-server,core} -> test-binary-support) that cargo
1684 ;; package --no-verify still rejects.
1685 #~(modify-phases #$orig
1686 (replace 'add-version-to-workspace-deps
1687 (lambda _
1688 (let ((cargo-files (find-files "." "^Cargo\\.toml$")))
1689 (substitute* cargo-files
1690 (("(codex[_-][a-z0-9_-]+) = \\{ path = " all name)
1691 (string-append name " = { version = \"0.124.0\", path = "))
1692 (("(codex[_-][a-z0-9_-]+) = \\{ package = " all name)
1693 (string-append name " = { version = \"0.124.0\", package = "))
1694 (("^(path = \"\\.\\./[^\"]*\")" all path-line)
1695 (string-append path-line "\nversion = \"0.124.0\""))))))
1696 (add-after 'add-version-to-workspace-deps 'break-dev-dep-cycles
1697 (lambda _
1698 (substitute* '("exec-server/Cargo.toml" "core/Cargo.toml")
1699 (("^codex-test-binary-support = \\{[^}]*\\}\n") ""))))))))
1700 (inputs (cargo-inputs 'rust-codex-0.124.0)))))
1701
1540;; Also update (@ (gnu packages gnome) glycin-loaders) when updating this. 1702;; Also update (@ (gnu packages gnome) glycin-loaders) when updating this.
1541(define-public rust-glycin-3 1703(define-public rust-glycin-3
1542 (package 1704 (package