fix: drop codex from t3code wrapper to avoid Rust build

- Filter codex out of providerPackages in the llm-agents t3code and t3code-desktop wrappers (new overlay t3code-without-codex)
- Apply the overlay after mkLlmAgentsOverlay and before t3code-agent-identity
- Only the cheap wrapper is rebuilt; t3code-unwrapped still comes from the numtide cache
This commit is contained in:
2026-11-15 12:48:18 +01:00
parent 275b0297a1
commit b16bb9efa7
2 changed files with 20 additions and 0 deletions
+2
View File
@@ -37,6 +37,8 @@
inputs.m3ta-nixpkgs.overlays.default inputs.m3ta-nixpkgs.overlays.default
(outputs.lib.mkLlmAgentsOverlay system) (outputs.lib.mkLlmAgentsOverlay system)
# codex aus dem t3code-Wrapper-PATH entfernen (sonst Rust-Build).
outputs.overlays.t3code-without-codex
# Wraps pkgs.llm-agents.t3code* with the agents' m3ta-chiron identity # Wraps pkgs.llm-agents.t3code* with the agents' m3ta-chiron identity
# (same as AZ-NIX-CLIENTS). Must come AFTER mkLlmAgentsOverlay. # (same as AZ-NIX-CLIENTS). Must come AFTER mkLlmAgentsOverlay.
inputs.m3ta-home.overlays.t3code-agent-identity inputs.m3ta-home.overlays.t3code-agent-identity
+18
View File
@@ -71,4 +71,22 @@
(inputs.llm-agents.packages.${system} or {}); (inputs.llm-agents.packages.${system} or {});
in in
packages // {llm-agents = packages;}; packages // {llm-agents = packages;};
# numtide's t3code-Wrapper legt alle Agent-CLIs in den PATH (codex,
# claude-code, cursor-agent, grok, opencode). codex nutzen wir nicht, es ist
# aber Rust und wird gebaut, sobald es nicht (noch nicht) im numtide-Cache
# liegt. Deshalb hier rausfiltern. Muss NACH mkLlmAgentsOverlay und VOR
# m3ta-home's t3code-agent-identity stehen. Neu gebaut wird dadurch nur der
# billige Wrapper; t3code-unwrapped kommt weiter aus dem Cache.
t3code-without-codex = _final: prev: let
t3code = prev.llm-agents.t3code.override {
providerPackages =
builtins.filter (p: (p.pname or "") != "codex")
prev.llm-agents.t3code.providerPackages;
};
t3code-desktop = prev.llm-agents.t3code-desktop.override {inherit t3code;};
in {
inherit t3code t3code-desktop;
llm-agents = prev.llm-agents // {inherit t3code t3code-desktop;};
};
} }