Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::PathSubstitutionGoal Class Reference
Inheritance diagram for nix::PathSubstitutionGoal:
nix::Goal

Public Member Functions

 PathSubstitutionGoal (const StorePath &storePath, Worker &worker, RepairFlag repair=NoRepair, std::optional< ContentAddress > ca=std::nullopt)
std::string key () override
const StorePath & getStorePath () const &
Co< ExitCode > init ()
void cleanup () override final
JobCategory jobCategory () const override
 Hint for the scheduler, which concurrency limit applies.
Public Member Functions inherited from nix::Goal
 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 () &

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

Member Function Documentation

◆ cleanup()

void nix::PathSubstitutionGoal::cleanup ( )
finaloverridevirtual

Reimplemented from nix::Goal.

◆ init()

Goal::Co< Goal::ExitCode > nix::PathSubstitutionGoal::init ( )

The states.

◆ jobCategory()

JobCategory nix::PathSubstitutionGoal::jobCategory ( ) const
inlineoverridevirtual

Hint for the scheduler, which concurrency limit applies.

See also
JobCategory

Implements nix::Goal.

◆ key()

std::string nix::PathSubstitutionGoal::key ( )
inlineoverridevirtual

Used for comparisons. The order matters a bit for scheduling. We want:

  1. Substitution
  2. Derivation administrativia
  3. Actual building

Also, ensure that derivations get processed in order of their name, i.e. a derivation named "aardvark" always comes before "baboon".

Implements nix::Goal.


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