![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include <derivation-builder.hh>
Public Member Functions | |
| MuxablePipePollState::CommChannel | logChannel () |
| Descriptor | logDescriptor () |
| virtual std::optional< Descriptor > | startBuild ()=0 |
| virtual BuilderExit | unprepareBuild ()=0 |
| virtual SingleDrvOutputs | registerOutputs (LocalStore &store)=0 |
| virtual SingleDrvOutputs | checkSubmittedOutputs (LocalStore &store)=0 |
| virtual void | cleanupBuild (bool force)=0 |
| virtual bool | killChild ()=0 |
| Public Member Functions inherited from nix::RestrictionContext | |
| virtual const StorePathSet & | originalPaths ()=0 |
| virtual bool | isAllowed (const StorePath &)=0 |
| virtual bool | isAllowed (const DrvOutput &id)=0 |
| bool | isAllowed (const DerivedPath &id) |
| virtual bool | shouldModifySandbox ()=0 |
| virtual void | submitOutput (const SingleDerivedPath &path, const OutputName &output)=0 |
| void | addDependency (const StorePath &path) |
Public Attributes | |
| AutoCloseFD | builderOut |
| Public Attributes inherited from nix::RestrictionContext | |
| Sync< State > | state_ |
Additional Inherited Members | |
| Protected Member Functions inherited from nix::RestrictionContext | |
| virtual void | addDependencyImpl (const StorePath &path)=0 |
This class represents the state for building locally.
|
pure virtual |
Check that the derivation outputs submitted by recursive-nix exist and attach them to the derivation.
Only used with builder-rpc-v0.
Implemented in nix::DerivationBuilderImpl.
|
pure virtual |
Delete the temporary directory, if we have one.
| force | We know the build succeeded, so don't attempt to preserve anything for debugging. |
Implemented in nix::ChrootDerivationBuilder, nix::ChrootFreeBSDDerivationBuilder, and nix::UnixDerivationBuilderImpl.
|
pure virtual |
Forcibly kill the child process, if any.
Implemented in nix::UnixDerivationBuilderImpl.
|
inline |
What the worker should wait on for this build's log.
|
inline |
The descriptor a ChildOutput event for this build's log carries.
|
pure virtual |
Check that the derivation outputs all exist and register them as valid.
Not used with builder-rpc-v0; see checkSubmittedOutputs.
Implemented in nix::DerivationBuilderImpl.
|
pure virtual |
Set up build environment / sandbox, acquiring resources (e.g. locks as needed). After this is run, the builder should be started.
Implemented in nix::UnixDerivationBuilderImpl.
|
pure virtual |
Tear down build environment after the builder exits (either on its own or if it is killed).
Implemented in nix::ChrootLinuxDerivationBuilder, and nix::UnixDerivationBuilderImpl.
| AutoCloseFD nix::DerivationBuilder::builderOut |
Where the builder's standard output/error is read from, set by startBuild.
The two platforms cannot share a type here: Unix hands out the master side of a pseudoterminal, whereas nix::windows::MuxablePipePollState::iterate needs the pipe's OVERLAPPED state and buffer, which a Descriptor does not carry.