Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
indirect-root-store.hh
Go to the documentation of this file.
1#pragma once
3
5
6namespace nix {
7
39struct IndirectRootStore : public virtual LocalFSStore
40{
41private:
42 void anchor() override;
43
44public:
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
75protected:
76 void makeSymlink(const std::filesystem::path & link, const std::filesystem::path & target);
77};
78
79} // namespace nix
Definition path.hh:33
Definition indirect-root-store.hh:40
std::filesystem::path addPermRoot(const StorePath &storePath, const std::filesystem::path &gcRoot) override final
Definition indirect-root-store.cc:20
virtual void addIndirectRoot(const std::filesystem::path &path)=0