diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-07-12 15:26:30 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-07-12 15:40:14 +0000 |
commit | 18152406ce9db9491385f2e67da6f7f78e8d98d5 (patch) | |
tree | ab5d8caa50780fd47805aece9e92f00faea1dc3b /src/libexpr/primops.cc | |
parent | 5d0b75e5b6a1c70203257fecc25743e5a1e009cb (diff) |
String .drv suffix to create derivation name
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r-- | src/libexpr/primops.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 14a7deed5..21bd4fb52 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -113,7 +113,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, std::string(storePath.name())); + Derivation drv = readDerivation(*state.store, realPath, Derivation::nameFromPath(storePath)); Value & w = *state.allocValue(); state.mkAttrs(w, 3 + drv.outputs.size()); Value * v2 = state.allocAttr(w, state.sDrvPath); |