From d1dd35bd7c22aa02725841e9823c0f60cee7a9dc Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Wed, 23 Sep 2026 12:01:30 +0800 Subject: [PATCH] chore(codex): bump the override to 0.156.1 0.156.1 still lacks the codex-chatgpt recursion_limit attribute, so keep the postPatch that adds it. The vendored Cargo.lock is unchanged, so the cargoHash stays the same. --- outputs/default.nix | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/outputs/default.nix b/outputs/default.nix index 3845a5ed..3dd4d445 100644 --- a/outputs/default.nix +++ b/outputs/default.nix @@ -29,13 +29,21 @@ let _system: packages: packages // { - codex = packages.codex.override { - version = "0.156.0"; - hash = "sha256-KGhOvpHi+Z2TemgrBTkWWY6Y3DdL0b2Fhmv2HcUjXhg="; - cargoVendor = { - cargoHash = "sha256-W87rX/W2J1pwqNrihX+Rj6DfagoZYuB6C+l/S4BhyJM="; - }; - }; + codex = + (packages.codex.override { + version = "0.156.1"; + hash = "sha256-H53f57hmnyCtn5yPxtBe/A92qyQyzQBeU/vK2qSBrvI="; + cargoVendor = { + cargoHash = "sha256-W87rX/W2J1pwqNrihX+Rj6DfagoZYuB6C+l/S4BhyJM="; + }; + }).overrideAttrs + (old: { + # codex's codex-chatgpt crate exceeds rustc's default recursion + # limit; the other crates already set this attribute. + postPatch = (old.postPatch or "") + '' + sed -i '1i #![recursion_limit = "256"]' chatgpt/src/lib.rs + ''; + }); } ) inputs.llm-agents.packages; };