fix(packages): gate codex on platform support
This commit is contained in:
parent
e019a60b4e
commit
15561a3201
3 changed files with 30 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue