mirror of
https://github.com/NixOS/nix.git
synced 2025-12-03 23:51:00 +01:00
Add build-dir setting
This commit is contained in:
parent
b1fe388d33
commit
8b16cced18
3 changed files with 41 additions and 6 deletions
|
|
@ -488,7 +488,7 @@ void LocalDerivationGoal::startBuilder()
|
|||
|
||||
/* Create a temporary directory where the build will take
|
||||
place. */
|
||||
tmpDir = createTempDir("", "nix-build-" + std::string(drvPath.name()), false, false, 0700);
|
||||
tmpDir = createTempDir(settings.buildDir.get().value_or(""), "nix-build-" + std::string(drvPath.name()), false, false, 0700);
|
||||
|
||||
chownToBuilder(tmpDir);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue