Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nar-listing.hh File Reference

Go to the source code of this file.

Classes

struct  nix::NarListingRegularFile

Typedefs

using nix::NarListing = fso::VariantT<NarListingRegularFile, true>
using nix::ShallowNarListing = fso::VariantT<NarListingRegularFile, false>

Functions

NarListing nix::parseNarListing (Source &source)
NarListing nix::listNarDeep (SourceAccessor &accessor, const CanonPath &path)
ShallowNarListing nix::listNarShallow (SourceAccessor &accessor, const CanonPath &path)

Typedef Documentation

◆ NarListing

using nix::NarListing = fso::VariantT<NarListingRegularFile, true>

Abstract syntax for a "NAR listing".

◆ ShallowNarListing

using nix::ShallowNarListing = fso::VariantT<NarListingRegularFile, false>

Shallow NAR listing where directory children are not recursively expanded. Uses a variant that can hold Regular/Symlink fully, but Directory children are just unit types indicating presence without content.

Function Documentation

◆ listNarDeep()

NarListing nix::listNarDeep ( SourceAccessor & accessor,
const CanonPath & path )

Return a deep structured representation of the contents of a NAR (except file contents), recursively listing all children.

◆ listNarShallow()

ShallowNarListing nix::listNarShallow ( SourceAccessor & accessor,
const CanonPath & path )

Return a shallow structured representation of the contents of a NAR (except file contents), only listing immediate children without recursing.

◆ parseNarListing()

NarListing nix::parseNarListing ( Source & source)

Parse a NAR from a Source and return its listing structure.