···11{ inputs, ... }:
22-let
33- flakeModule = {
44- systems = import inputs.systems;
55- imports = [
66- ./perSystem-lib.nix
77- ./tests.nix
88- ./treefmt.nix
99- ];
1010- };
1111-1212- # Tests are defined by target, and imported bellow by `inputs.target.flakeModules.nix-unit`.
1313- # See example/flake.nix or https://github.com/vic/import-tree/tree/main/checks/default.nix
1414- targetTest = inputs.target.flakeModules.nix-unit or { };
1515-in
162{
33+ systems = import inputs.systems;
174 imports = [
1818- flakeModule
1919- targetTest
55+ ./perSystem-lib.nix
66+ ./tests.nix
77+ ./treefmt.nix
208 ];
2121-2222- flake.flakeModules.default = flakeModule;
239}
+4
tests.nix
···22{
33 imports = [
44 inputs.nix-unit.modules.flake.default
55+66+ # Tests are defined by target, and imported bellow by `inputs.target.flakeModules.nix-unit`.
77+ # See example/flake.nix or https://github.com/vic/import-tree/tree/main/checks/default.nix
88+ (inputs.target.flakeModules.checkmate or { })
59 ];
610711 perSystem = (