From 972405edf5ff0d90185fb4021993c4a942787578 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 7 Oct 2021 12:15:22 +0200 Subject: [PATCH] Allow access to path copied to the store Fixes https://github.com/NixOS/nix/pull/5163#issuecomment-931733912. --- src/libexpr/eval.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index ce266f522..2483132f6 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -1897,6 +1897,7 @@ string EvalState::copyPathToStore(PathSet & context, const Path & path) dstPath = store->printStorePath(p); srcToStore.insert_or_assign(path, std::move(p)); printMsg(lvlChatty, "copied source '%1%' -> '%2%'", path, dstPath); + allowPath(dstPath); } context.insert(dstPath);