#include "source-accessor.hh"
#include <functional>
#include <nlohmann/json_fwd.hpp>
Go to the source code of this file.
◆ GetNarBytes
Create a NAR accessor from a NAR listing (in the format produced by listNar()). The callback getNarBytes(offset, length) is used by the readFile() method of the accessor to get the contents of files inside the NAR.
◆ listNar()
Write a JSON representation of the contents of a NAR (except file contents).
◆ makeNarAccessor()
ref< SourceAccessor > nix::makeNarAccessor |
( |
std::string && | nar | ) |
|
Return an object that provides access to the contents of a NAR file.