Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
indirect-root-store.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
nix/store/local-fs-store.hh
"
5
6
namespace
nix {
7
39
struct
IndirectRootStore
:
public
virtual
LocalFSStore
40
{
41
private
:
42
void
anchor()
override
;
43
44
public
:
45
inline
static
std::string operationName =
"Indirect GC roots registration"
;
46
62
std::filesystem::path
addPermRoot
(
const
StorePath
& storePath,
const
std::filesystem::path & gcRoot)
override
final
;
63
73
virtual
void
addIndirectRoot
(
const
std::filesystem::path & path) = 0;
74
75
protected
:
76
void
makeSymlink(
const
std::filesystem::path & link,
const
std::filesystem::path & target);
77
};
78
79
}
// namespace nix
nix::StorePath
Definition
path.hh:33
local-fs-store.hh
nix::IndirectRootStore
Definition
indirect-root-store.hh:40
nix::IndirectRootStore::addPermRoot
std::filesystem::path addPermRoot(const StorePath &storePath, const std::filesystem::path &gcRoot) override final
Definition
indirect-root-store.cc:20
nix::IndirectRootStore::addIndirectRoot
virtual void addIndirectRoot(const std::filesystem::path &path)=0
libstore
include
nix
store
indirect-root-store.hh
Generated by
1.18.0