Remote binary caches support `write-nar-listing` options where they create a `HASH.ls` file for quick indexing without having to download the nar. This commit makes experimental `nix store ls` attempt to read these files instead of downloading the full nar. The difference is very obvious with large packages like stellarium: nix store ls --store "https://cache.nixos.org" /nix/store/ijpvwgs9zamqaax5dy2cd0kxgz7lr7an-stellarium-25.1 -R Change-Id: I6a37e0788b3a91c319331a8de69c51daf3efa955
466 B
466 B
synopsis, issues, cls, category, credits
| synopsis | issues | cls | category | credits | ||
|---|---|---|---|---|---|---|
| Allow `nix store ls` to read nar listings from binary cache stores. |
|
Improvements |
|
The nix store ls command now supports reading .ls nar listings from binary cache stores.
If a listing is detected for the store path being queried, the nar is no longer downloaded.
These nar listings are available in binary cache stores where the write-nar-listing option is
enabled, such as cache.nixos.org.