Merge pull request #11795 from nix-windows/windows-build/nix-build-tmpdir-env-fix

Fix compilation of nix-build on Windows
This commit is contained in:
John Ericson 2024-11-03 20:44:06 -05:00 committed by GitHub
commit 915cbe656e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -536,7 +536,7 @@ static void main_nix_build(int argc, char * * argv)
env["__ETC_PROFILE_SOURCED"] = "1";
}
env["NIX_BUILD_TOP"] = env["TMPDIR"] = env["TEMPDIR"] = env["TMP"] = env["TEMP"] = tmpDir.path();
env["NIX_BUILD_TOP"] = env["TMPDIR"] = env["TEMPDIR"] = env["TMP"] = env["TEMP"] = tmpDir.path().string();
env["NIX_STORE"] = store->storeDir;
env["NIX_BUILD_CORES"] = std::to_string(settings.buildCores);