1
0
Fork 0
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:
Yang, Bo 2023-05-06 19:30:03 -07:00
parent 86684881e1
commit 5043aa8956

View file

@ -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