Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
build.hh
Go to the documentation of this file.
1#pragma once
3
5
6namespace nix {
7
16struct Builder
17{
18 /* VTable anchor to avoid weak linkage of the vtable - it breaks
19 dynamic_cast across shared libraries on Darwin. */
20 virtual void anchor();
21
32 virtual void buildPaths(const std::vector<DerivedPath> & reqs, BuildMode buildMode = bmNormal) = 0;
33
40 virtual std::vector<KeyedBuildResult>
41 buildPathsWithResults(const std::vector<DerivedPath> & reqs, BuildMode buildMode = bmNormal) = 0;
42
78 virtual BuildResult
79 buildDerivation(const StorePath & drvPath, const BasicDerivation & drv, BuildMode buildMode = bmNormal) = 0;
80
90 virtual void ensurePath(const StorePath & path) = 0;
91
96 virtual void repairPath(const StorePath & path) = 0;
97
98 virtual ~Builder() = default;
99};
100
101} // namespace nix
Definition path.hh:33
Definition build-result.hh:123
Definition build.hh:17
virtual void buildPaths(const std::vector< DerivedPath > &reqs, BuildMode buildMode=bmNormal)=0
virtual BuildResult buildDerivation(const StorePath &drvPath, const BasicDerivation &drv, BuildMode buildMode=bmNormal)=0
virtual void repairPath(const StorePath &path)=0
virtual std::vector< KeyedBuildResult > buildPathsWithResults(const std::vector< DerivedPath > &reqs, BuildMode buildMode=bmNormal)=0
virtual void ensurePath(const StorePath &path)=0