aboutsummaryrefslogtreecommitdiff
path: root/src/nix/run.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/run.cc')
-rw-r--r--src/nix/run.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nix/run.cc b/src/nix/run.cc
index 2865f5bbb..7fd9c4c7e 100644
--- a/src/nix/run.cc
+++ b/src/nix/run.cc
@@ -109,26 +109,26 @@ struct CmdRun : InstallablesCommand, RunCommon, MixEnvironment
auto accessor = store->getFSAccessor();
- std::unordered_set<Path> done;
- std::queue<Path> todo;
- for (auto & path : outPaths) todo.push(path);
+ std::unordered_set<StorePath> done;
+ std::queue<StorePath> todo;
+ for (auto & path : outPaths) todo.push(path.clone());
setEnviron();
auto unixPath = tokenizeString<Strings>(getEnv("PATH").value_or(""), ":");
while (!todo.empty()) {
- Path path = todo.front();
+ auto path = todo.front().clone();
todo.pop();
- if (!done.insert(path).second) continue;
+ if (!done.insert(path.clone()).second) continue;
if (true)
- unixPath.push_front(path + "/bin");
+ unixPath.push_front(store->printStorePath(path) + "/bin");
- auto propPath = path + "/nix-support/propagated-user-env-packages";
+ auto propPath = store->printStorePath(path) + "/nix-support/propagated-user-env-packages";
if (accessor->stat(propPath).type == FSAccessor::tRegular) {
for (auto & p : tokenizeString<Paths>(readFile(propPath)))
- todo.push(p);
+ todo.push(store->parseStorePath(p));
}
}