mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
fetchgit: add a default NIX_BUILD_CORES variable
NIX_BUILD_CORES might not be defined at runtime, so the command would fail.
This commit is contained in:
parent
fa1dc64d42
commit
922d55bf2d
@ -206,7 +206,7 @@ checkout_ref(){
|
||||
|
||||
# Update submodules
|
||||
init_submodules(){
|
||||
clean_git submodule update --init --recursive -j $NIX_BUILD_CORES
|
||||
clean_git submodule update --init --recursive -j ${NIX_BUILD_CORES:-1}
|
||||
}
|
||||
|
||||
clone(){
|
||||
|
Loading…
Reference in New Issue
Block a user