mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
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
Block a user