mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 10:10:45 -06:00
use real time not "cpu time"
This commit is contained in:
parent
8b570bede1
commit
5e1095c895
2 changed files with 4 additions and 4 deletions
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
buildNimPackage,
|
||||
}:
|
||||
buildNimPackage (_final: _prev: {
|
||||
buildNimPackage {
|
||||
pname = "oizys";
|
||||
version = "unstable";
|
||||
src = ./.;
|
||||
})
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ proc dry(c: OizysContext) =
|
|||
execQuit "nix build " & c.systemFlakePath & " --dry-run"
|
||||
|
||||
proc cache(c: OizysContext) =
|
||||
let start = cpuTime()
|
||||
let start = now()
|
||||
let code = execCmd """
|
||||
cachix watch-exec """ & c.cache & """ \
|
||||
-- \
|
||||
|
@ -65,7 +65,7 @@ proc cache(c: OizysContext) =
|
|||
--print-build-logs \
|
||||
--accept-flake-config
|
||||
"""
|
||||
let duration = (cpuTime() - start)
|
||||
let duration = (now() - start)
|
||||
if code != 0:
|
||||
error "faile to build configuration for: ", c.host
|
||||
|
||||
|
|
Loading…
Reference in a new issue