From f12a048a0595ea75453c6b67a3b72da8106fc6ad Mon Sep 17 00:00:00 2001 From: Neil Mayhew Date: Sat, 8 Apr 2017 18:31:11 -0600 Subject: Propagate NIX_BUILD_CORES to nix-shell environments --- src/nix-build/nix-build.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc index b4206033c..065447684 100755 --- a/src/nix-build/nix-build.cc +++ b/src/nix-build/nix-build.cc @@ -406,6 +406,7 @@ int main(int argc, char ** argv) env["NIX_BUILD_TOP"] = env["TMPDIR"] = env["TEMPDIR"] = env["TMP"] = env["TEMP"] = tmp; env["NIX_STORE"] = store->storeDir; + env["NIX_BUILD_CORES"] = settings.buildCores; for (auto & var : drv.env) env[var.first] = var.second; -- cgit v1.2.3