Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
installable-attr-path.hh
Go to the documentation of this file.
1#pragma once
3
7#include "nix/cmd/command.hh"
12#include "nix/expr/eval.hh"
13#include "nix/expr/get-drvs.hh"
15#include "nix/main/shared.hh"
17#include "nix/util/url.hh"
20
21#include <regex>
22#include <queue>
23
24namespace nix {
25
26class InstallableAttrPath : public InstallableValue
27{
29 RootValue v;
30 std::string attrPath;
31 ExtendedOutputsSpec extendedOutputsSpec;
32
33 InstallableAttrPath(
34 ref<EvalState> state,
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
49public:
50
51 static InstallableAttrPath parse(
52 ref<EvalState> state,
54 Value * v,
55 std::string_view prefix,
56 ExtendedOutputsSpec extendedOutputsSpec);
57};
58
59} // namespace nix
Definition eval.hh:420
Definition ref.hh:58
AutoCall
Definition installable-value.hh:78
std::vector< DerivedPathWithInfo > DerivedPathsWithInfo
Definition installables.hh:95
Definition outputs-spec.hh:110
Definition command.hh:148
Definition value.hh:1166
std::shared_ptr< Value * > RootValue
Definition value.hh:1632