aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/attr-path.hh
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2019-10-28 21:22:38 +0100
committerzimbatm <zimbatm@zimbatm.com>2019-10-28 21:29:54 +0100
commitec448f8bb694b6f9546e49fe6a79b86ff2b2f90a (patch)
treefc4179397140249009ec6e6203d86f40884a9360 /src/libexpr/attr-path.hh
parent59c72497696eaafa294c34699795788d24d68c68 (diff)
libexpr: findDerivationFilename return Pos instead of tuple
Diffstat (limited to 'src/libexpr/attr-path.hh')
-rw-r--r--src/libexpr/attr-path.hh6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libexpr/attr-path.hh b/src/libexpr/attr-path.hh
index dca94cc78..716e5ba27 100644
--- a/src/libexpr/attr-path.hh
+++ b/src/libexpr/attr-path.hh
@@ -4,15 +4,13 @@
#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);
+/* Heuristic to find the filename and lineno or a nix value. */
+Pos findDerivationFilename(EvalState & state, Value & v, std::string what);
}