lib: simplify `mkAliasAndWrapDefinitions`
This commit is contained in:
parent
a1f226b78b
commit
c0c43e9c07
|
@ -532,9 +532,7 @@ rec {
|
|||
#
|
||||
mkAliasDefinitions = mkAliasAndWrapDefinitions id;
|
||||
mkAliasAndWrapDefinitions = wrap: option:
|
||||
mkMerge
|
||||
(optional (isOption option && option.isDefined)
|
||||
(wrap (mkMerge option.definitions)));
|
||||
mkIf (isOption option && option.isDefined) (wrap (mkMerge option.definitions));
|
||||
|
||||
|
||||
/* Compatibility. */
|
||||
|
|
Loading…
Reference in New Issue