mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 10:16:15 +02:00
27 lines
560 B
C++
27 lines
560 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include "eval.hh"
|
|
|
|
#include <string>
|
|
#include <map>
|
|
|
|
namespace nix {
|
|
|
|
MakeError(AttrPathNotFound, Error);
|
|
MakeError(NoPositionInfo, Error);
|
|
|
|
std::pair<Value *, PosIdx> findAlongAttrPath(
|
|
EvalState & state,
|
|
const std::string & attrPath,
|
|
Bindings & autoArgs,
|
|
Value & vIn);
|
|
|
|
/**
|
|
* Heuristic to find the filename and lineno or a nix value.
|
|
*/
|
|
std::pair<SourcePath, uint32_t> findPackageFilename(EvalState & state, Value & v, std::string what);
|
|
|
|
std::vector<Symbol> parseAttrPath(EvalState & state, std::string_view s);
|
|
|
|
}
|