From 87c978605eaa7038567a3bad093cbb2614da857f Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 11 Nov 2024 13:33:32 +0300 Subject: [PATCH] guix: `guix-start` should respect `SDK_PATH` --- contrib/containers/guix/scripts/guix-start | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/contrib/containers/guix/scripts/guix-start b/contrib/containers/guix/scripts/guix-start index e8f24d29c5..dea0e6c96d 100755 --- a/contrib/containers/guix/scripts/guix-start +++ b/contrib/containers/guix/scripts/guix-start @@ -17,11 +17,12 @@ XCODE_VERSION="12.2" XCODE_RELEASE="12B45b" XCODE_ARCHIVE="Xcode-${XCODE_VERSION}-${XCODE_RELEASE}-extracted-SDK-with-libcxx-headers" +export SDK_PATH="${SDK_PATH:-${WORKSPACE_PATH}/depends/SDKs}" + # Check if macOS SDK is present, if not, download it -if [ ! -d "${WORKSPACE_PATH}/depends/SDKs/${XCODE_ARCHIVE}" ] -then - mkdir -p "${WORKSPACE_PATH}/depends/SDKs" - curl -L https://bitcoincore.org/depends-sources/sdks/${XCODE_ARCHIVE}.tar.gz | tar -xz -C "${WORKSPACE_PATH}/depends/SDKs" +if [[ ! -d "${SDK_PATH}/${XCODE_ARCHIVE}" ]]; then + mkdir -p "${SDK_PATH}" + curl -L https://bitcoincore.org/depends-sources/sdks/${XCODE_ARCHIVE}.tar.gz | tar -xz -C "${SDK_PATH}" fi cd "${WORKSPACE_PATH}"