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:
commit
c4626ad354
|
@ -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"}
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue