mergeOneOption
lib.mergeOneOption
Docs pulled from | This Revision | 31 minutes ago
Nixpkgs manual
Require a single definition.
Does not perform nested checks, as this does not run the merge function!
Noogle detected
Implementation
The following is the current implementation of this function.
loc: defs:
if length defs == 1 then
merge loc defs
else
assert length defs > 1;
throw "The option `${showOption loc}' is defined multiple times while it's expected to be unique.\n${message}\nDefinition values:${showDefs defs}\n${prioritySuggestion}"