Skip to content

Commit

Permalink
feat(build): #546 expose internals
Browse files Browse the repository at this point in the history
- Expose internals so the CLI can consume them
  • Loading branch information
kamadorueda committed Sep 17, 2021
1 parent 0f0ae97 commit 9221aa3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cli/main/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,9 @@ def main() -> None:
except Error as err:
_log(f"[ERROR] {err.args[0]}")
if err.args[1:]:
_log(f"[ERROR] Stdout: {err.args[1].decode(errors='replace')}")
_log(f"[ERROR] Stdout: \n{err.args[1].decode(errors='replace')}")
if err.args[2:]:
_log(f"[ERROR] Stderr: {err.args[2].decode(errors='replace')}")
_log(f"[ERROR] Stderr: \n{err.args[2].decode(errors='replace')}")
sys.exit(1)
except SystemExit as err:
sys.exit(err.code)
Expand Down
12 changes: 11 additions & 1 deletion src/evaluator/from-flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@ let
inherit system;
};

packages = evaluatorOutputs.config.outputs;
packages =
(builtins.listToAttrs (builtins.map
(output: {
name = "makes:config:outputs:${output}";
value = evaluatorOutputs.config.outputs.${output};
})
(builtins.attrNames evaluatorOutputs.config.outputs)))
// {
"makes:config:attrs" = evaluatorOutputs.config.attrs;
"makes:config:cacheAsJson" = evaluatorOutputs.config.cacheAsJson;
};
in
{
inherit packages;
Expand Down

0 comments on commit 9221aa3

Please sign in to comment.