From 6d5c9b8c195d6a7dd86cf485deed9e94496d47c3 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 8 Jan 2025 10:37:26 -0600 Subject: [PATCH] make build result more readable --- pkgs/oizys/src/oizys/nix.nim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/oizys/src/oizys/nix.nim b/pkgs/oizys/src/oizys/nix.nim index 36fcabe..d671f42 100644 --- a/pkgs/oizys/src/oizys/nix.nim +++ b/pkgs/oizys/src/oizys/nix.nim @@ -324,6 +324,8 @@ type duration*: Duration successful*: bool + + proc build(drv: OizysDerivation, rest: seq[string]): BuildResult = let startTime = now() var cmd = "nix build" @@ -333,7 +335,9 @@ proc build(drv: OizysDerivation, rest: seq[string]): BuildResult = let buildCode = runCmd(cmd) result.successful = buildCode == 0 result.duration = now() - startTime - debug "build duration: " & $result.duration + # TODO: make splitDrv more ergonmic? + info "succesfully built: " & splitDrv(drv.name).name + info "-> duration: " & $result.duration func outputsPaths(o: OizysDerivation): seq[string] = for _, output in o.drv.outputs: