diff --git a/oizys/default.nix b/oizys/default.nix index 3094cd9..e21b781 100644 --- a/oizys/default.nix +++ b/oizys/default.nix @@ -1,8 +1,8 @@ { buildNimPackage, }: -buildNimPackage (_final: _prev: { +buildNimPackage { pname = "oizys"; version = "unstable"; src = ./.; -}) +} diff --git a/oizys/oizys.nim b/oizys/oizys.nim index 5e1617e..248908a 100644 --- a/oizys/oizys.nim +++ b/oizys/oizys.nim @@ -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