about summary refs log tree commit diff
path: root/src/libexpr/eval.cc
diff options
context:
space:
mode:
authorAmineChikhaoui <amine.chikhaoui91@gmail.com>2018-02-07T16·53+0100
committerAmineChikhaoui <amine.chikhaoui91@gmail.com>2018-02-07T16·53+0100
commit163e39547ae6f69586e23b85e462bfc5a2131a17 (patch)
treeebad1d32bfe5938e0393627d7430b5d145ab5657 /src/libexpr/eval.cc
parent9d1e22f743ea9ca232d39d498b675d7e5ac1ca87 (diff)
parent48c192ca2d5bc65b69d2336c8577258f8eb80cf8 (diff)
Merge branch 'master' of https://github.com/NixOS/nix into parallel-xz
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r--src/libexpr/eval.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index 7775cbe53cc4..0b0a0f7b1790 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -1578,7 +1578,7 @@ string EvalState::copyPathToStore(PathSet & context, const Path & path)
         dstPath = srcToStore[path];
     else {
         dstPath = settings.readOnlyMode
-            ? store->computeStorePathForPath(checkSourcePath(path)).first
+            ? store->computeStorePathForPath(baseNameOf(path), checkSourcePath(path)).first
             : store->addToStore(baseNameOf(path), checkSourcePath(path), true, htSHA256, defaultPathFilter, repair);
         srcToStore[path] = dstPath;
         printMsg(lvlChatty, format("copied source '%1%' -> '%2%'")