fix(packages): gate codex on platform support

This commit is contained in:
Rasyidan Akbar F. 2026-11-02 19:45:57 +07:00
commit 15561a3201
3 changed files with 30 additions and 6 deletions

View file

@ -1,6 +1,11 @@
{ pkgs, llm-agents }:
let
upstream = llm-agents.packages.${pkgs.stdenv.hostPlatform.system}.codex;
system = pkgs.stdenv.hostPlatform.system;
upstream =
if builtins.hasAttr system llm-agents.packages then
llm-agents.packages.${system}.codex
else
throw "codex: llm-agents does not provide packages.${system} (supported: ${builtins.concatStringsSep ", " (builtins.attrNames llm-agents.packages)})";
manifest = pkgs.writeText "codex-package.json" (
builtins.toJSON {
layoutVersion = 1;