How to check if all my packages are available in the binary cache

Is there a way to check whether any of my packages is not in the binary cache (other than running nixos-rebuild and checking if it builds something)? I am currently waiting for the build failures of paperless and libreoffice to be resolved and for hydra to build them but it’s quite annoying to try to nixos-rebuild just to check if they are cached. Alternatively, how can I check if a specific package is cached in a way that it can be run as a script?

one option:

Alternatively you can set max-jobs to 0 which will cause the build to fail for uncached and unsubstitutable store objects

4 Likes

Thank you! Looks like nix-weather is exactly what I was looking for.

1 Like