mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2024-12-14 11:47:31 +00:00
Add mkDeferredModuleOption
This commit is contained in:
parent
86684881e1
commit
5043aa8956
1 changed files with 5 additions and 3 deletions
8
lib.nix
8
lib.nix
|
@ -85,7 +85,7 @@ let
|
|||
arguments as `inputs` like above.
|
||||
'';
|
||||
|
||||
flake-parts-lib = {
|
||||
flake-parts-lib = rec {
|
||||
evalFlakeModule =
|
||||
args@
|
||||
{ inputs ? self.inputs
|
||||
|
@ -156,17 +156,19 @@ let
|
|||
};
|
||||
};
|
||||
|
||||
mkPerSystemType =
|
||||
mkDeferredModuleType =
|
||||
module:
|
||||
deferredModuleWith {
|
||||
staticModules = [ module ];
|
||||
};
|
||||
mkPerSystemType = mkDeferredModuleType;
|
||||
|
||||
mkPerSystemOption =
|
||||
mkDeferredModuleOption =
|
||||
module:
|
||||
mkOption {
|
||||
type = flake-parts-lib.mkPerSystemType module;
|
||||
};
|
||||
mkPerSystemOption = mkDeferredModuleOption;
|
||||
|
||||
# Helper function for defining a per-system option that
|
||||
# gets transposed by the usual flake system logic to a
|
||||
|
|
Loading…
Reference in a new issue