From 922d55bf2df6f73ed24a98a479f0feffa7d9187d Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 24 Jun 2023 04:20:00 +0000 Subject: [PATCH] fetchgit: add a default NIX_BUILD_CORES variable NIX_BUILD_CORES might not be defined at runtime, so the command would fail. --- pkgs/build-support/fetchgit/nix-prefetch-git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index e46ccf538bd5..ae2e3600800b 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -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(){