mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
pkgs-lib/hocon: fix type for _includes
This commit is contained in:
parent
f6089dbf47
commit
d6041cc2ca
1 changed files with 4 additions and 1 deletions
|
@ -113,10 +113,13 @@ in
|
|||
path
|
||||
str
|
||||
]);
|
||||
|
||||
includeType = addCheck attrs (x: (x._type or null) == "include");
|
||||
in
|
||||
(oneOf [
|
||||
atomType
|
||||
(listOf atomType)
|
||||
(addCheck (listOf atomType) (lib.all atomType.check))
|
||||
(addCheck (listOf includeType) (lib.all includeType.check))
|
||||
(attrsOf type')
|
||||
])
|
||||
// {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue