Flake lock file updates: • Updated input 'nix': 'github:NixOS/nix/f5f4de6a550327b4b1a06123c2e450f1b92c73b6' (2023-10-02) → 'github:NixOS/nix/50f8f1c8bc019a4c0fd098b9ac674b94cfc6af0d' (2023-11-27)
24 lines
543 B
C++
24 lines
543 B
C++
#pragma once
|
|
|
|
#include "source-accessor.hh"
|
|
#include "types.hh"
|
|
#include "serialise.hh"
|
|
#include "hash.hh"
|
|
|
|
struct NarMemberData
|
|
{
|
|
nix::SourceAccessor::Type type;
|
|
std::optional<uint64_t> fileSize;
|
|
std::optional<std::string> contents;
|
|
std::optional<nix::Hash> sha256;
|
|
};
|
|
|
|
typedef std::map<nix::Path, NarMemberData> 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);
|