summary refs log tree commit diff
path: root/pkgs/test/mkOption/merge.nix
blob: bbf68218aa09a539bc3bf5e679430b51633132e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
let
  pkgs = import ../../.. {};
  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 ]