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

@ -228,9 +228,16 @@
formatter = forEachSystem (system: (mkPkgs system).nixfmt);
checks = forEachSystem (system: {
inherit (self.packages.${system}) cf codex;
});
checks = forEachSystem (
system:
let
customPkgs = self.packages.${system};
in
{
inherit (customPkgs) cf;
}
// lib.optionalAttrs (customPkgs ? codex) { inherit (customPkgs) codex; }
);
packages = forEachSystem (
system: