Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
derivation-resolution-goal.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
nix/store/derivations.hh
"
5
#include "
nix/store/derivation-options.hh
"
6
#include "nix/store/build/derivation-building-misc.hh"
7
#include "
nix/store/store-api.hh
"
8
#include "
nix/store/build/goal.hh
"
9
10
namespace
nix {
11
12
struct
BuilderFailureError
;
13
36
struct
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
49
private
:
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
{
69
return
JobCategory::Administration
;
70
};
71
};
72
73
}
// namespace nix
nix::StorePath
Definition
path.hh:33
nix::ref
Definition
ref.hh:58
derivation-options.hh
derivations.hh
goal.hh
nix::JobCategory
JobCategory
Definition
goal.hh:57
nix::JobCategory::Administration
@ Administration
Definition
goal.hh:75
nix::GoalPtr
std::shared_ptr< Goal > GoalPtr
Definition
goal.hh:32
store-api.hh
nix::BuilderFailureError
Definition
derivation-builder.hh:37
nix::DerivationResolutionGoal::resolvedDrv
std::unique_ptr< std::pair< StorePath, BasicDerivation > > resolvedDrv
Definition
derivation-resolution-goal.hh:47
nix::Goal::Co
Definition
goal.hh:272
nix::Goal::worker
Worker & worker
Definition
goal.hh:140
nix::RefDeepComparator
Definition
ref.hh:167
libstore
include
nix
store
build
derivation-resolution-goal.hh
Generated by
1.18.0