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:
@@ -71,4 +71,22 @@
|
||||
(inputs.llm-agents.packages.${system} or {});
|
||||
in
|
||||
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;};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user