mirror of
https://github.com/numtide/treefmt.git
synced 2024-09-11 17:07:44 +03:00
17 lines
393 B
Nix
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;
|
|
};
|
|
}
|