treefmt/nix/checks.nix

17 lines
393 B
Nix
Raw Normal View History

{
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;
};
2023-12-23 15:50:47 +03:00
perSystem = {self', ...}: {
# mixin every package
2023-12-23 15:50:47 +03:00
checks = with lib; mapAttrs' (n: nameValuePair "package-${n}") self'.packages;
};
}