mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
lib.modules: beta reduce mergeOptionDecls for free
This commit is contained in:
@@ -1038,7 +1038,7 @@ let
|
||||
: 2\. Function argument
|
||||
*/
|
||||
mergeOptionDecls =
|
||||
loc: opts:
|
||||
loc:
|
||||
foldl'
|
||||
(
|
||||
res: opt:
|
||||
@@ -1103,8 +1103,7 @@ let
|
||||
declarations = [ ];
|
||||
declarationPositions = [ ];
|
||||
options = [ ];
|
||||
}
|
||||
opts;
|
||||
};
|
||||
|
||||
/**
|
||||
Merge all the definitions of an option to produce the final
|
||||
|
||||
Reference in New Issue
Block a user