hi,
simple question here, how can I check if a package in a flake is available in a cache ?
-
Frequently Asked Questions — documentation shows that one can curl the hash to check if the .nar exists but I am not sure how to retreive the hash from a flake (
nix flake show
doesn’t show it). -
How to check if a binary cache contains substitutes? [multi-user edition] · Issue #1607 · NixOS/nix · GitHub is kinda old but
nix build .#mypkg --option substituters 's3://mycache' --option narinfo-cache-negative-ttl 0 --option narinfo-cache-positive-ttl 0 --dry-run
returns true once the package is available on my machine.
I would like a way that can just check the exitcode of a command, the different posts I see require reading the logs.