sunwait
Sunwait calculates sunrise or sunset times and blocks until next sunrise/sunwait event. This software is a fork of Dan Risacher’s original sunwait program.
Install using Nix Flake
This repository contains flake.nix file that builds and provides sunwait executable file.
Build from source
You need Zig compiler v0.14.x.
zig build -Dlegacy
To build and run the built application in one go, use this command instead:
zig build -Dlegacy run
# To pass arguments to the program, set them after "--"
zig build -Dlegacy run -- poll
To build new CLI, remove -Dlegacy option from the above.
zig build
zig build run
zig build run -- poll