aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-12-10 13:54:06 -0500
committerCarl Dong <contact@carldong.me>2021-01-08 11:40:01 -0500
commit444fcfca907d46cfeb52001599966cce25bdf54e (patch)
tree5b92c72b157a4c8729074bcf76f6780872f2aa11 /contrib
parent9158d6f34153dc937e109d0e7486e956a26f20aa (diff)
downloadbitcoin-444fcfca907d46cfeb52001599966cce25bdf54e.tar.xz
guix: Make guix honor MAX_JOBS setting
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/guix/guix-build.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/guix/guix-build.sh b/contrib/guix/guix-build.sh
index 11d2c8b867..e075b42423 100755
--- a/contrib/guix/guix-build.sh
+++ b/contrib/guix/guix-build.sh
@@ -18,6 +18,7 @@ SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(git log --format=%at -1)}"
time-machine() {
guix time-machine --url=https://github.com/dongcarl/guix.git \
--commit=b066c25026f21fb57677aa34692a5034338e7ee3 \
+ --max-jobs="$MAX_JOBS" \
-- "$@"
}
@@ -108,6 +109,7 @@ for host in ${HOSTS=x86_64-linux-gnu arm-linux-gnueabihf aarch64-linux-gnu riscv
--expose="$(git rev-parse --git-common-dir)" \
${SOURCES_PATH:+--share="$SOURCES_PATH"} \
${ADDITIONAL_GUIX_ENVIRONMENT_FLAGS} \
+ --max-jobs="$MAX_JOBS" \
-- env HOST="$host" \
MAX_JOBS="$MAX_JOBS" \
SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:?unable to determine value}" \