Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
archive.hh
Go to the documentation of this file.
1#pragma once
3
4#include "types.hh"
5#include "serialise.hh"
6#include "fs-sink.hh"
7
8
9namespace nix {
10
11
60void dumpPath(const Path & path, Sink & sink,
61 PathFilter & filter = defaultPathFilter);
62
66time_t dumpPathAndGetMtime(const Path & path, Sink & sink,
67 PathFilter & filter = defaultPathFilter);
68
74void dumpString(std::string_view s, Sink & sink);
75
76void parseDump(FileSystemObjectSink & sink, Source & source);
77
78void restorePath(const std::filesystem::path & path, Source & source, bool startFsync = false);
79
83void copyNAR(Source & source, Sink & sink);
84
85
86inline constexpr std::string_view narVersionMagic1 = "nix-archive-1";
87
88inline constexpr std::string_view caseHackSuffix = "~nix~case~hack~";
89
90
91}
std::function< bool(const Path &path)> PathFilter
Definition file-system.hh:365
return s
Definition lexer.l:459
void startFsync() const
Definition fs-sink.hh:27
Definition serialise.hh:20
Definition serialise.hh:68
std::string Path
Definition types.hh:22