This is the initial released of nix-weather, a cli-tool written in Rust, that checks how many of your NixOS system’s build dependencies are in a binary cache.
$ nix-weather -n myhost -c /etc/config/
Found Nix Requisites in 8 seconds
Checked 2789 packages in 1 seconds
Found 2676/2789 (95.95%) in cache
Specifically, this solves a problem we’ve had at DBC Digital where we come back to the office on Mondays, start deploying an update, and find that all of the CUDA related packages we need haven’t hit cache yet, making deployments take much longer than if we’d just waited a bit.
So to speak, it checks if the “weather on the cache” is bad today.
Feel free to try it out from the GitHub mirror (it’s likely faster than my forgejo instance, and I’d appreciate saving the bandwidth). Also, be aware that this is still a very early prototype, and is likely gonna see many breaking changes in the future.