virtualbox: obey NIX_BUILD_CORES for make invocation

This commit is contained in:
Sheena Artrip 2016-04-22 02:39:42 -04:00
parent c37c5d4b52
commit 50d6c3ba38
No known key found for this signature in database
GPG Key ID: A4B75E82267F507D

View File

@ -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"}
'';