diff options
author | Ben Sima <ben@bsima.me> | 2022-08-03 14:11:18 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2022-08-03 15:20:01 -0400 |
commit | 27a631b2c94df80ac5da8c97b66a3e99e1813811 (patch) | |
tree | f706daa9710b7412d23f1dea4288cd22318e0039 /Biz/Bild.nix | |
parent | 935d5dc1c8d4c60a70d79a3f47718f9dcf5684fd (diff) |
Print bild JSON analysis as a dictionary instead of a stream
Diffstat (limited to 'Biz/Bild.nix')
-rw-r--r-- | Biz/Bild.nix | 5 |
1 files changed, 4 insertions, 1 deletions
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")); |