summary refs log tree commit diff
path: root/pkgs/test/mkOption/merge.nix
blob: 0d4b3c1acd18cd4385df0708e442531b70cf51a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
let
  pkgs = import ../../top-level/all-packages.nix {};
  config = import ./declare.nix;

  # Define the handler of unbound options.
  noOption = name: values:
    builtins.trace "Attribute named '${name}' does not match any option declaration." values;
in
  with (pkgs.lib);

  finalReferenceOptionSets
    (mergeOptionSets noOption)
    pkgs
    # List of main configurations.
    [ config.configB config.configC ]