aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-08-31 14:24:26 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-08-31 14:24:26 +0200
commit84f5cabbeaed6b700e05fb4b4bab46c0ab1b5aa4 (patch)
tree66b8d8dbe049bedb299674adaf9931464113f4df /src/libexpr/primops.cc
parentc3efef9275ce6db3d65a2eb97aee507e79b626a6 (diff)
parent56707218f601418b211f37a7b44f671ab3dacd8d (diff)
Merge remote-tracking branch 'origin/master' into markdown
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r--src/libexpr/primops.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 87eb7ae7b..3350d05d4 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -102,7 +102,7 @@ static void import(EvalState & state, const Pos & pos, Value & vPath, Value * vS
if (auto optStorePath = isValidDerivationInStore()) {
auto storePath = *optStorePath;
- Derivation drv = readDerivation(*state.store, realPath, Derivation::nameFromPath(storePath));
+ Derivation drv = state.store->readDerivation(storePath);
Value & w = *state.allocValue();
state.mkAttrs(w, 3 + drv.outputs.size());
Value * v2 = state.allocAttr(w, state.sDrvPath);