Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::DerivationBuildingGoal Struct Reference

#include <derivation-building-goal.hh>

Inheritance diagram for nix::DerivationBuildingGoal:
nix::Goal

Public Member Functions

 DerivationBuildingGoal (const StorePath &drvPath, ref< const BasicDerivation > drv, Worker &worker, BuildMode buildMode)
Public Member Functions inherited from nix::Goal
virtual void cleanup ()
 Goal (Worker &worker, Co< ExitCode > init)
void work ()
void handleChildOutput (Descriptor fd, std::string_view data)
void handleEOF (Descriptor fd)
void timedOut (TimedOut &&ex)
void trace (std::string_view s)
std::string getName () const
std::string_view keyCached () &

Friends

class Worker

Additional Inherited Members

Public Types inherited from nix::Goal
enum  ExitCode { ecSuccess , ecFailed , ecNoSubstituters }
using ChildEvent = std::variant<ChildOutput, ChildEOF, std::unique_ptr<TimedOut>>
template<typename T>
using HandleType = std::coroutine_handle<AwaitableFrame<T>>
using HandleTypeBase = std::coroutine_handle<AwaitableFrameBase>
Public Attributes inherited from nix::Goal
Worker & worker
WeakGoals waiters
size_t nrFailed = 0
size_t nrNoSubstituters = 0
std::string name
std::optional< ExitCode > exitCode
BuildResult buildResult
bool preserveFailure = false
Protected Member Functions inherited from nix::Goal
Co< void > await (Goals waitees)
Co< void > waitForAWhile ()
Co< void > waitUntilWoken ()
Co< void > waitForBuildSlot ()
Co< void > yield ()
Protected Attributes inherited from nix::Goal
std::optional< CoBase > top_co
std::optional< ExitCode > finalExitCode

Detailed Description

A goal for building a derivation. Substitution, (or any other method of obtaining the outputs) will not be attempted, so it is the calling goal's responsibility to try to substitute first.

Constructor & Destructor Documentation

◆ DerivationBuildingGoal()

nix::DerivationBuildingGoal::DerivationBuildingGoal ( const StorePath & drvPath,
ref< const BasicDerivation > drv,
Worker & worker,
BuildMode buildMode )
Parameters
drvThe derivation to build, with the outputs of its input derivations already added to its input sources.

The documentation for this struct was generated from the following files: