query
On this page

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!

(lib.options.mergeOneOption)

Noogle detected

Aliases

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}"