simple question here, how can I check if a package in a flake is available in a cache ?
Frequently Asked Questions — Cachix docs 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 showdoesn’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-runreturns 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.