Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
archive.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
nix/util/types.hh
"
5
#include "
nix/util/serialise.hh
"
6
#include "
nix/util/fs-sink.hh
"
7
8
namespace
nix {
9
18
constexpr
size_t
narMaxDepth
= 64;
19
68
void
dumpPath(
const
std::filesystem::path & path,
Sink
& sink,
PathFilter
& filter = defaultPathFilter);
69
73
time_t dumpPathAndGetMtime(
const
std::filesystem::path & path,
Sink
& sink,
PathFilter
& filter = defaultPathFilter);
74
80
void
dumpString(std::string_view s,
Sink
& sink);
81
82
void
parseDump(
FileSystemObjectSink
& sink,
Source
& source);
83
84
void
restorePath(
85
const
std::filesystem::path & path,
86
Source
& source,
87
bool
startFsync =
false
,
88
RestoreSinkHooks
* hooks =
nullptr
89
);
90
94
void
copyNAR(
Source
& source,
Sink
& sink);
95
96
inline
constexpr
std::string_view narVersionMagic1 =
"nix-archive-1"
;
97
98
inline
constexpr
std::string_view caseHackSuffix =
"~nix~case~hack~"
;
99
100
}
// namespace nix
nix::narMaxDepth
constexpr size_t narMaxDepth
Definition
archive.hh:18
nix::RestoreSinkHooks
Definition
fs-sink.hh:151
nix::PathFilter
fun< bool(const std::string &path)> PathFilter
Definition
file-system.hh:494
fs-sink.hh
serialise.hh
nix::FileSystemObjectSink
Definition
fs-sink.hh:39
nix::Sink
Definition
serialise.hh:18
nix::Source
Definition
serialise.hh:95
types.hh
libutil
include
nix
util
archive.hh
Generated by
1.18.0