#pragma once #include #include #include #include struct NarMemberData { nix::SourceAccessor::Type type; std::optional fileSize; std::optional contents; std::optional sha256; }; typedef std::map NarMemberDatas; /* Read a NAR from a source and get to some info about every file inside the NAR. */ void extractNarData( nix::Source & source, const nix::Path & prefix, NarMemberDatas & members);