lib: simplify mkAliasAndWrapDefinitions

This commit is contained in:
Jan Malakhovski 2018-04-28 20:05:00 +00:00
parent a1f226b78b
commit c0c43e9c07

View File

@ -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. */