mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
Add class: imports "type checking"
Initially this had some feature checking with lib.functionArgs, but I don't think this is useful. The _class attribute is not supported by long-unsupported Nixpkgs (<23.05) anyway, so let's keep it simple.
This commit is contained in:
parent
e5d10a24b6
commit
411e5ab0e8
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