Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
attr-path.hh
Go to the documentation of this file.
1#pragma once
3
4#include "nix/expr/eval.hh"
5
6#include <string>
7#include <map>
8
9namespace nix {
10
11MakeError(AttrPathNotFound, Error);
12MakeError(NoPositionInfo, Error);
13
14std::pair<Value *, PosIdx>
15findAlongAttrPath(EvalState & state, const std::string & attrPath, const Bindings & autoArgs, Value & vIn);
16
20std::pair<SourcePath, uint32_t> findPackageFilename(EvalState & state, Value & v, std::string what);
21
22struct AttrPath : std::vector<Symbol>
23{
24 using std::vector<Symbol>::vector;
25
26 static AttrPath parse(EvalState & state, std::string_view s);
27
28 std::string to_string(EvalState & state) const;
29
30 std::vector<SymbolStr> resolve(EvalState & state) const;
31};
32
33} // namespace nix
Definition attr-set.hh:67
Definition error.hh:310
Definition eval.hh:420
Definition symbol-table.hh:24
Definition attr-path.hh:23
Definition value.hh:1166