use real time not "cpu time"

This commit is contained in:
Daylin Morgan 2024-01-29 10:49:59 -06:00
parent 8b570bede1
commit 5e1095c895
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
2 changed files with 4 additions and 4 deletions

View file

@ -1,8 +1,8 @@
{ {
buildNimPackage, buildNimPackage,
}: }:
buildNimPackage (_final: _prev: { buildNimPackage {
pname = "oizys"; pname = "oizys";
version = "unstable"; version = "unstable";
src = ./.; src = ./.;
}) }

View file

@ -57,7 +57,7 @@ proc dry(c: OizysContext) =
execQuit "nix build " & c.systemFlakePath & " --dry-run" execQuit "nix build " & c.systemFlakePath & " --dry-run"
proc cache(c: OizysContext) = proc cache(c: OizysContext) =
let start = cpuTime() let start = now()
let code = execCmd """ let code = execCmd """
cachix watch-exec """ & c.cache & """ \ cachix watch-exec """ & c.cache & """ \
-- \ -- \
@ -65,7 +65,7 @@ proc cache(c: OizysContext) =
--print-build-logs \ --print-build-logs \
--accept-flake-config --accept-flake-config
""" """
let duration = (cpuTime() - start) let duration = (now() - start)
if code != 0: if code != 0:
error "faile to build configuration for: ", c.host error "faile to build configuration for: ", c.host