diff options
| author | Robert Hensing <roberth@users.noreply.github.com> | 2024-09-18 17:08:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-18 17:08:15 +0200 |
| commit | d572d95502ec11590c7a221e4431f9f7bbbae5f9 (patch) | |
| tree | fac112b152640fc1104582c63f0308c2bc3a09a8 /lib/types.nix | |
| parent | roon-server: 2.0-1455 (#342750) (diff) | |
| parent | lib.types.anything: remove custom logic for lists (default to 'mergeEqualOpti... (diff) | |
| download | nixpkgs-d572d95502ec11590c7a221e4431f9f7bbbae5f9.tar.gz | |
lib.types.anything: remove custom logic for lists (#340202)
Diffstat (limited to 'lib/types.nix')
| -rw-r--r-- | lib/types.nix | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/types.nix b/lib/types.nix index 86b717afd122..6c4a66c4e3c0 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -253,12 +253,6 @@ rec { mergeFunction = { # Recursively merge attribute sets set = (attrsOf anything).merge; - # Safe and deterministic behavior for lists is to only accept one definition - # listOf only used to apply mkIf and co. - list = - if length defs > 1 - then throw "The option `${showOption loc}' has conflicting definitions, in ${showFiles (getFiles defs)}." - else (listOf anything).merge; # This is the type of packages, only accept a single definition stringCoercibleSet = mergeOneOption; lambda = loc: defs: arg: anything.merge |
