3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #14887 from sheenobu/bugfix/14886/vbox_cpucore

virtualbox: obey NIX_BUILD_CORES for make invocation
This commit is contained in:
Joachim Fasting 2016-04-23 19:42:31 +02:00
commit c4626ad354

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