mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
virtualbox: obey NIX_BUILD_CORES for make invocation
This commit is contained in:
parent
c37c5d4b52
commit
50d6c3ba38
@ -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