findDerivationFilename: add FIXME

This commit is contained in:
Jonas Chevalier 2019-10-28 21:40:02 +01:00
parent d407f4d15f
commit 9a25059656
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7

View file

@ -103,6 +103,8 @@ Pos findDerivationFilename(EvalState & state, Value & v, std::string what)
throw Error("package '%s' has no source location information", what);
}
// FIXME: is it possible to extract the Pos object instead of doing this
// toString + parsing?
auto pos = state.forceString(*v2);
auto colon = pos.rfind(':');