1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

libexpr: add findDerivationFilename

extract the derivation to filename:lineno heuristic
This commit is contained in:
zimbatm 2019-10-23 17:21:10 +02:00
parent 207a537343
commit 59c7249769
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
4 changed files with 36 additions and 43 deletions

View file

@ -4,10 +4,15 @@
#include <string>
#include <map>
#include <tuple>
namespace nix {
Value * findAlongAttrPath(EvalState & state, const string & attrPath,
Bindings & autoArgs, Value & vIn);
/* Heuristic to find the filename and lineno or a derivation. */
std::tuple<std::string, int> findDerivationFilename(EvalState & state,
Value & v, std::string what);
}