From 1ac4f45ea310c93ef592bbaf73a03ad86e61049b Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Sat, 2 May 2026 02:17:34 +0200 Subject: [PATCH] jsonSchemaCatalogs: use structuredAttrs instead of passAsFile --- pkgs/data/json-schema/lib.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/data/json-schema/lib.nix b/pkgs/data/json-schema/lib.nix index 7202de3ba70a..599c58c40fce 100644 --- a/pkgs/data/json-schema/lib.nix +++ b/pkgs/data/json-schema/lib.nix @@ -85,7 +85,6 @@ let }) group; }) groups; }; - passAsFile = [ "catalogJson" ]; passthru = { inherit groups; }; @@ -93,6 +92,7 @@ let jq json-schema-catalog-rs ]; + __structuredAttrs = true; } // lib.optionalAttrs (version != null) { inherit version; @@ -105,7 +105,7 @@ let mkdir -p "$out_dir" # Write the catalog JSON. `jq` formats it nicely. - jq . <"$catalogJsonPath" >"$out_file" + printf "%s" "$catalogJson" | jq . >"$out_file" json-schema-catalog check "$out_file" '';