From 50d6c3ba3874c5b79750868786ca0de9982390b4 Mon Sep 17 00:00:00 2001 From: Sheena Artrip Date: Fri, 22 Apr 2016 02:39:42 -0400 Subject: [PATCH] virtualbox: obey NIX_BUILD_CORES for make invocation --- pkgs/applications/virtualization/virtualbox/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/virtualization/virtualbox/default.nix b/pkgs/applications/virtualization/virtualbox/default.nix index f09480ba3944..371acbed5e60 100644 --- a/pkgs/applications/virtualization/virtualbox/default.nix +++ b/pkgs/applications/virtualization/virtualbox/default.nix @@ -33,7 +33,7 @@ let "$mod/Module.symvers" fi INSTALL_MOD_PATH="$out" INSTALL_MOD_DIR=misc \ - make -C "$MODULES_BUILD_DIR" DEPMOD=/do_not_use_depmod \ + make -j $NIX_BUILD_CORES -C "$MODULES_BUILD_DIR" DEPMOD=/do_not_use_depmod \ "M=\$(PWD)/$mod" BUILD_TYPE="${buildType}" ${action} done ''; @@ -144,7 +144,7 @@ in stdenv.mkDerivation { buildPhase = '' source env.sh - kmk BUILD_TYPE="${buildType}" + kmk -j $NIX_BUILD_CORES BUILD_TYPE="${buildType}" ${forEachModule "modules"} '';