Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
derivation-resolution-goal.hh
Go to the documentation of this file.
1#pragma once
3
6#include "nix/store/build/derivation-building-misc.hh"
9
10namespace nix {
11
13
36struct DerivationResolutionGoal : public Goal
37{
38 friend class Worker;
39
40 DerivationResolutionGoal(
41 const StorePath & drvPath, ref<const Derivation> drv, Worker & worker, BuildMode buildMode);
42
47 std::unique_ptr<std::pair<StorePath, BasicDerivation>> resolvedDrv;
48
49private:
50
54 StorePath drvPath;
55
56 std::unique_ptr<Activity> act;
57
58 std::string key() override;
59
60 using InputsGoalMap = std::map<ref<const SingleDerivedPath>, GoalPtr, RefDeepComparator>;
61
62 Co<ExitCode> init(ref<const Derivation> drv, BuildMode buildMode);
63 Co<BuildResult> resolve(ref<const Derivation> drv, BuildMode buildMode);
64 Co<InputsGoalMap> realiseInputs(const Derivation & drv, BuildMode buildMode);
65 Co<decltype(resolvedDrv)> resolveDerivation(const Derivation & drv, const InputsGoalMap & inputGoals);
66
67 JobCategory jobCategory() const override
68 {
70 };
71};
72
73} // namespace nix
Definition path.hh:33
Definition ref.hh:58
JobCategory
Definition goal.hh:57
@ Administration
Definition goal.hh:75
std::shared_ptr< Goal > GoalPtr
Definition goal.hh:32
Definition derivation-builder.hh:37
std::unique_ptr< std::pair< StorePath, BasicDerivation > > resolvedDrv
Definition derivation-resolution-goal.hh:47
Definition goal.hh:272
Worker & worker
Definition goal.hh:140
Definition ref.hh:167