flake: make host check more dynamic
Closes 7f6c7c5
This commit is contained in:
parent
84b6c958dd
commit
4d7e73dee2
19
flake.nix
19
flake.nix
@ -313,16 +313,13 @@
|
|||||||
description = "OCaml template.";
|
description = "OCaml template.";
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: magicify this to be built of a list
|
checks = let buildList = [ "europa" "stan" "h" "box" "faf" ];
|
||||||
checks.x86_64-linux.europa =
|
in with unstable.lib;
|
||||||
self.nixosConfigurations.europa.config.system.build.toplevel;
|
foldl' recursiveUpdate { } (mapAttrsToList (name: system: {
|
||||||
checks.x86_64-linux.stan =
|
"${system.pkgs.stdenv.hostPlatform.system}"."${name}" =
|
||||||
self.nixosConfigurations.europa.config.system.build.toplevel;
|
system.config.system.build.toplevel;
|
||||||
checks.x86_64-linux.h =
|
}) (filterAttrs
|
||||||
self.nixosConfigurations.h.config.system.build.toplevel;
|
(n: v: (builtins.elem n buildList))
|
||||||
checks.x86_64-linux.box =
|
self.nixosConfigurations));
|
||||||
self.nixosConfigurations.box.config.system.build.toplevel;
|
|
||||||
checks.x86_64-linux.faf =
|
|
||||||
self.nixosConfigurations.faf.config.system.build.toplevel;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user