build(nix): the macOS options and nix-darwin module validations are checks on every system

They take a plain pkgs and evaluate against any nixpkgs, so a Linux runner can build them. They stay in the macos-options set.
This commit is contained in:
LGUG2Z committed 2026-11-05 15:51:50 -08:00
1 parent f05d7fe737
commit e23bfcfb36
1 file changed
+15 -4
+15 -4
View File
@@ -13,6 +13,21 @@ let
inherit (lib') mkPkgs;
in
{
# the options and the nix-darwin module are plain Nix: they take a plain `pkgs` and are evaluated on
# every system, so that a Linux runner can check them (the ci workflow does)
imports = [
{
perSystem =
{ pkgs, ... }:
{
allChecks = {
macos-nix-options-validation = import ./tests { inherit pkgs; };
macos-darwin-module-validation = import ./tests/darwin-module.nix { inherit pkgs; };
};
};
}
];
perSystem =
{ pkgs, system, ... }:
let
@@ -57,10 +72,6 @@ in
);
macos-nextest = build.craneLib.cargoNextest (build.individualCrateArgs // { doCheck = true; });
macos-nix-options-validation = import ./tests { inherit pkgs; };
macos-darwin-module-validation = import ./tests/darwin-module.nix { inherit pkgs; };
};
packages = {