mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
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 New Issue
Block a user