Nix
2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
installable-attr-path.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
lix/libcmd/installable-value.hh
"
5
#include "
lix/libexpr/eval-cache.hh
"
6
#include "
lix/libstore/outputs-spec.hh
"
7
#include "
lix/libcmd/command.hh
"
8
#include "
lix/libcmd/common-eval-args.hh
"
9
#include "
lix/libexpr/eval.hh
"
10
11
namespace
nix {
12
13
class
InstallableAttrPath :
public
InstallableValue
14
{
15
SourceExprCommand
& cmd;
16
RootValue
v;
17
std::string attrPath;
18
ExtendedOutputsSpec
extendedOutputsSpec;
19
20
InstallableAttrPath(
21
ref<eval_cache::CachingEvaluator>
state,
22
SourceExprCommand
& cmd,
23
Value
* v,
24
const
std::string & attrPath,
25
ExtendedOutputsSpec
extendedOutputsSpec);
26
27
std::string
what
()
const override
{
return
attrPath; };
28
29
std::pair<Value *, PosIdx> toValue(
EvalState
& state)
override
;
30
31
DerivedPathsWithInfo
toDerivedPaths(
EvalState
& state)
override
;
32
33
public
:
34
35
static
InstallableAttrPath parse(
36
ref<eval_cache::CachingEvaluator>
state,
37
SourceExprCommand
& cmd,
38
Value
* v,
39
std::string_view prefix,
40
ExtendedOutputsSpec
extendedOutputsSpec);
41
};
42
43
}
nix::EvalState
Definition
eval.hh:685
nix::ref
Definition
ref.hh:19
command.hh
common-eval-args.hh
eval-cache.hh
installable-value.hh
nix::DerivedPathsWithInfo
std::vector< DerivedPathWithInfo > DerivedPathsWithInfo
Definition
installables.hh:93
eval.hh
outputs-spec.hh
nix::ExtendedOutputsSpec
Definition
outputs-spec.hh:97
nix::Installable::what
virtual std::string what() const =0
nix::SourceExprCommand
Definition
command.hh:112
nix::Value
Definition
value.hh:190
nix::RootValue
std::shared_ptr< Value * > RootValue
Definition
value.hh:848
lix
libcmd
installable-attr-path.hh
Generated by
1.15.0