![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
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 |
|
finaloverridevirtual |
Reimplemented from nix::Goal.
| Goal::Co< Goal::ExitCode > nix::PathSubstitutionGoal::init | ( | ) |
The states.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Used for comparisons. The order matters a bit for scheduling. We want:
Also, ensure that derivations get processed in order of their name, i.e. a derivation named "aardvark" always comes before "baboon".
Implements nix::Goal.