![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include <drv-output-substitution-goal.hh>
Public Member Functions | |
| DrvOutputSubstitutionGoal (const DrvOutput &id, Worker &worker) | |
| Co< ExitCode > | init () |
| std::string | key () override |
| JobCategory | jobCategory () const override |
| Hint for the scheduler, which concurrency limit applies. | |
| 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 () & |
Public Attributes | |
| std::shared_ptr< const UnkeyedRealisation > | outputInfo |
| 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 |
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> |
| 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 |
Fetch a Realisation (drv тип output name -> output path) from a substituter.
If the output store object itself should also be substituted, that is the responsibility of the caller to do so.
|
inlineoverridevirtual |
|
overridevirtual |
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.
| std::shared_ptr<const UnkeyedRealisation> nix::DrvOutputSubstitutionGoal::outputInfo |
The realisation corresponding to the given output id. Will be filled once we can get it.