From 27a631b2c94df80ac5da8c97b66a3e99e1813811 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 3 Aug 2022 14:11:18 -0400 Subject: Print bild JSON analysis as a dictionary instead of a stream --- Biz/Bild.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Biz/Bild.nix') diff --git a/Biz/Bild.nix b/Biz/Bild.nix index ab120db..b6946c9 100644 --- a/Biz/Bild.nix +++ b/Biz/Bild.nix @@ -98,7 +98,10 @@ rec { # gather data needed for compiling by analyzing the main module analyze = main: - # builtins.head + let + path = lib.strings.removePrefix (builtins.getEnv "BIZ_ROOT" + "/") (toString main); + in + lib.attrsets.getAttrFromPath [path] (lib.trivial.importJSON (runBildAnalyze main + "/analysis.json")); -- cgit v1.2.3