From 07f056a377d3ff319b420abd47f134941f9cafa8 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Tue, 12 Nov 2024 16:16:20 +0300 Subject: [PATCH] guix: Let `XCODE_SOURCE` be specified via env --- contrib/containers/guix/scripts/guix-start | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/containers/guix/scripts/guix-start b/contrib/containers/guix/scripts/guix-start index f36674427d..1b5e75b5e7 100755 --- a/contrib/containers/guix/scripts/guix-start +++ b/contrib/containers/guix/scripts/guix-start @@ -12,6 +12,7 @@ fi XCODE_VERSION="12.2" XCODE_RELEASE="12B45b" XCODE_ARCHIVE="Xcode-${XCODE_VERSION}-${XCODE_RELEASE}-extracted-SDK-with-libcxx-headers" +XCODE_SOURCE="${XCODE_SOURCE:-https://bitcoincore.org/depends-sources/sdks}" export SDK_PATH="${SDK_PATH:-${WORKSPACE_PATH}/depends/SDKs}" @@ -19,7 +20,7 @@ export SDK_PATH="${SDK_PATH:-${WORKSPACE_PATH}/depends/SDKs}" if [[ ! -d "${SDK_PATH}/${XCODE_ARCHIVE}" ]]; then echo "Preparing macOS SDK..." mkdir -p "${SDK_PATH}" - curl -L https://bitcoincore.org/depends-sources/sdks/${XCODE_ARCHIVE}.tar.gz | tar -xz -C "${SDK_PATH}" + curl -L "${XCODE_SOURCE}/${XCODE_ARCHIVE}.tar.gz" | tar -xz -C "${SDK_PATH}" fi # Add safe.directory option only when WORKSPACE_PATH was specified via cmd-line arguments (happens in CI)