From d6041cc2ca1e5e6afa5b251bca964f241e8bd051 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 24 Mar 2025 21:21:34 +0100 Subject: [PATCH] pkgs-lib/hocon: fix type for `_includes` --- pkgs/pkgs-lib/formats/hocon/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/pkgs-lib/formats/hocon/default.nix b/pkgs/pkgs-lib/formats/hocon/default.nix index 681aae9f3eae..4adeaa14fd7b 100644 --- a/pkgs/pkgs-lib/formats/hocon/default.nix +++ b/pkgs/pkgs-lib/formats/hocon/default.nix @@ -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') ]) // {