mirror of
https://github.com/numtide/treefmt.git
synced 2024-10-26 17:30:03 +03:00
ebfd17b76a
Signed-off-by: Brian McGee <brian@bmcgee.ie>
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;
|
|
};
|
|
}
|