Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
installable-attr-path.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
nix/store/globals.hh
"
5
#include "
nix/cmd/installable-value.hh
"
6
#include "
nix/store/outputs-spec.hh
"
7
#include "
nix/cmd/command.hh
"
8
#include "
nix/expr/attr-path.hh
"
9
#include "
nix/cmd/common-eval-args.hh
"
10
#include "
nix/store/derivations.hh
"
11
#include "
nix/expr/eval-inline.hh
"
12
#include "
nix/expr/eval.hh
"
13
#include "
nix/expr/get-drvs.hh
"
14
#include "
nix/store/store-api.hh
"
15
#include "
nix/main/shared.hh
"
16
#include "
nix/expr/eval-cache.hh
"
17
#include "
nix/util/url.hh
"
18
#include "
nix/fetchers/registry.hh
"
19
#include "
nix/store/build-result.hh
"
20
21
#include <regex>
22
#include <queue>
23
24
namespace
nix {
25
26
class
InstallableAttrPath :
public
InstallableValue
27
{
28
SourceExprCommand
& cmd;
29
RootValue
v;
30
std::string attrPath;
31
ExtendedOutputsSpec
extendedOutputsSpec;
32
33
InstallableAttrPath(
34
ref<EvalState>
state,
35
SourceExprCommand
& cmd,
36
Value
* v,
37
const
std::string & attrPath,
38
ExtendedOutputsSpec
extendedOutputsSpec);
39
40
std::string what()
const override
41
{
42
return
attrPath;
43
};
44
45
std::pair<Value *, PosIdx> toValue(
EvalState
& state,
AutoCall
autoCall)
override
;
46
47
DerivedPathsWithInfo
toDerivedPaths()
override
;
48
49
public
:
50
51
static
InstallableAttrPath parse(
52
ref<EvalState>
state,
53
SourceExprCommand
& cmd,
54
Value
* v,
55
std::string_view prefix,
56
ExtendedOutputsSpec
extendedOutputsSpec);
57
};
58
59
}
// namespace nix
attr-path.hh
build-result.hh
nix::EvalState
Definition
eval.hh:420
nix::ref
Definition
ref.hh:58
command.hh
common-eval-args.hh
derivations.hh
eval-cache.hh
eval-inline.hh
eval.hh
get-drvs.hh
globals.hh
installable-value.hh
nix::AutoCall
AutoCall
Definition
installable-value.hh:78
nix::DerivedPathsWithInfo
std::vector< DerivedPathWithInfo > DerivedPathsWithInfo
Definition
installables.hh:95
outputs-spec.hh
registry.hh
shared.hh
store-api.hh
nix::ExtendedOutputsSpec
Definition
outputs-spec.hh:110
nix::SourceExprCommand
Definition
command.hh:148
nix::Value
Definition
value.hh:1166
url.hh
nix::RootValue
std::shared_ptr< Value * > RootValue
Definition
value.hh:1632
libcmd
include
nix
cmd
installable-attr-path.hh
Generated by
1.18.0