From 542ae5c8f804b704101f9d27bd8b2aa62ded899c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 21 Oct 2016 16:50:28 +0200 Subject: BinaryCacheStore: Optionally write a NAR listing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The store parameter "write-nar-listing=1" will cause BinaryCacheStore to write a file ‘.ls.xz’ for each ‘.narinfo’ added to the binary cache. This file contains an XZ-compressed JSON file describing the contents of the NAR, excluding the contents of regular files. E.g. { "version": 1, "root": { "type": "directory", "entries": { "lib": { "type": "directory", "entries": { "Mcrt1.o": { "type": "regular", "size": 1288 }, "Scrt1.o": { "type": "regular", "size": 3920 }, } } } ... } } (The actual file has no indentation.) This is intended to speed up the NixOS channels programs index generator [1], since fetching gazillions of large NARs from cache.nixos.org is currently a bottleneck for updating the regular (non-small) channel. [1] https://github.com/NixOS/nixos-channel-scripts/blob/master/generate-programs-index.cc --- src/libstore/local-store.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstore/local-store.hh') diff --git a/src/libstore/local-store.hh b/src/libstore/local-store.hh index 24188130db78..86f03526d181 100644 --- a/src/libstore/local-store.hh +++ b/src/libstore/local-store.hh @@ -125,7 +125,7 @@ public: void querySubstitutablePathInfos(const PathSet & paths, SubstitutablePathInfos & infos) override; - void addToStore(const ValidPathInfo & info, const std::string & nar, + void addToStore(const ValidPathInfo & info, const ref & nar, bool repair, bool dontCheckSigs) override; Path addToStore(const string & name, const Path & srcPath, -- cgit 1.4.1