A .narinfo file contains metadata for a Nix binary cache object. It is used by Nix to locate, verify, and download NAR (Nix Archive) files. The format is a key-value text format where keys are capitalized (e.g., StorePath, URL, NarHash).
Key fields include:
StorePath: The full path in the Nix store.URL: The location of the object (can be relative to the cache base or an absolute URL).Compression: The compression algorithm used (e.g., xz, zstd).FileHash: The hash of the compressed file.NarHash: The hash of the uncompressed NAR archive.References: A space-delimited list of other store paths referenced by this object.
StorePath: /nix/store/p4pclmv1gyja5kzc26npqpia1qqxrf0l-ruby-2.7.3
URL: nar/1w1fff338fvdw53sqgamddn1b2xgds473pv6y13gizdbqjv4i5p3.nar.xz
Compression: xz
FileHash: sha256:1w1fff338fvdw53sqgamddn1b2xgds473pv6y13gizdbqjv4i5p3
FileSize: 4029176
NarHash: sha256:1impfw8zdgisxkghq9a3q7cn7jb9zyzgxdydiamp8z2nlyyl0h5h
NarSize: 18735072
References: 0d71ygfwbmy1xjlbj1v027dfmy9cqavy-libffi-3.3 0dbbrvlw2rahvzi69bmpqy1z9mvzg62s-gdbm-1.19
Deriver: bidkcs01mww363s4s7akdhbl6ws66b0z-ruby-2.7.3.drv
Sig: cache.nixos.org-1:GrGV/Ls10TzoOaCnrcAqmPbKXFLLSBDeGNh5EQGKyuGA4K1wv1LcRVb6/sU+NAPK8lDiam8XcdJzUngmdhfTBQ==