mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
Merge pull request #154 from hercules-ci/class
Add class: imports "type checking"
This commit is contained in:
commit
8dc45382d5
3 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,7 @@ let
|
|||
_file = "${toString moduleLocation}#flakeModules.${k}";
|
||||
key = "${toString moduleLocation}#flakeModules.${k}";
|
||||
imports = [ v ];
|
||||
_class = "flake";
|
||||
});
|
||||
description = ''
|
||||
flake-parts modules for use by other flakes.
|
||||
|
|
1
lib.nix
1
lib.nix
|
@ -120,6 +120,7 @@ let
|
|||
inputs = args.inputs or /* legacy, warned above */ self.inputs;
|
||||
} // specialArgs;
|
||||
modules = [ ./all-modules.nix (lib.setDefaultModuleLocation errorLocation module) ];
|
||||
class = "flake";
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -126,6 +126,7 @@ in
|
|||
specialArgs = {
|
||||
inherit system;
|
||||
};
|
||||
class = "perSystem";
|
||||
}).config;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue