diff --git a/lix/libstore/build/local-derivation-goal.cc b/lix/libstore/build/local-derivation-goal.cc index 13bda5df9..2222d10c6 100644 --- a/lix/libstore/build/local-derivation-goal.cc +++ b/lix/libstore/build/local-derivation-goal.cc @@ -490,7 +490,9 @@ try { /* Schedule this scratch output path for automatic deletion * if we do not cancel it, e.g. when registering the outputs. */ - scratchOutputsCleaner.emplace(outputName, worker.store.printStorePath(scratchPath)); + scratchOutputsCleaner.emplace( + outputName, worker.store.toRealPath(worker.store.printStorePath(scratchPath)) + ); /* Substitute output placeholders with the scratch output paths. We'll use during the build. */