mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 18:30:43 -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,
|
||||||
}:
|
}:
|
||||||
buildNimPackage (_final: _prev: {
|
buildNimPackage {
|
||||||
pname = "oizys";
|
pname = "oizys";
|
||||||
version = "unstable";
|
version = "unstable";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
})
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue