aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libstore/build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index d05ff7506..61abd2ed2 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1661,7 +1661,7 @@ void DerivationGoal::startBuilder()
/* Create a temporary directory where the build will take
place. */
- tmpDir = createTempDir("", "nix-build-" + baseNameOf(drvPath), false, false, 0700);
+ tmpDir = createTempDir("", "nix-build-" + storePathToName(drvPath), false, false, 0700);
/* For convenience, set an environment pointing to the top build
directory. */