treefmt/nix/checks.nix
Brian McGee ebfd17b76a
feat: add nix github workflow
Signed-off-by: Brian McGee <brian@bmcgee.ie>
2024-05-08 08:54:58 +01:00

17 lines
393 B
Nix

{
lib,
inputs,
self,
...
}: {
# generate github actions matrix using the flake's checks
flake.githubActions = inputs.nix-github-actions.lib.mkGithubMatrix {
checks = lib.getAttrs ["x86_64-linux" "x86_64-darwin"] self.checks;
};
perSystem = {self', ...}: {
# mixin every package
checks = with lib; mapAttrs' (n: nameValuePair "package-${n}") self'.packages;
};
}