diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-08-28 19:59:14 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-08-28 19:59:14 +0000 |
commit | 8017fe7487ff545ac7be68bd7b339fffffa12b8f (patch) | |
tree | f9e5f5fec9acc96ae66d7369d42803344866facd /src/libexpr/primops.cc | |
parent | 3a7b330b64c6ea77e18a0a96aad7fb14947382d9 (diff) | |
parent | f15651303f8596bf34c67fc8d536b1e9e7843a87 (diff) |
Merge remote-tracking branch 'upstream/master' into single-ca-drv-build
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r-- | src/libexpr/primops.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index d28024639..62af42136 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -121,7 +121,7 @@ static void prim_scopedImport(EvalState & state, const Pos & pos, Value * * args }; 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); @@ -858,7 +858,7 @@ static void prim_derivationStrict(EvalState & state, const Pos & pos, Value * * } /* Write the resulting term into the Nix store directory. */ - auto drvPath = writeDerivation(state.store, drv, state.repair); + auto drvPath = writeDerivation(*state.store, drv, state.repair); auto drvPathS = state.store->printStorePath(drvPath); printMsg(lvlChatty, "instantiated '%1%' -> '%2%'", drvName, drvPathS); |