add default expansion for NIM_REPO

This commit is contained in:
gmega 2024-01-19 19:40:12 -03:00
parent e8ad522799
commit 13375768d0
No known key found for this signature in database
GPG Key ID: FFD8DAF00660270F
1 changed files with 3 additions and 0 deletions

3
env.sh
View File

@ -11,7 +11,10 @@ ABS_PATH="$(cd ${REL_PATH}; pwd)"
ENV_FILE="${ABS_PATH}/vendor/nimbus-build-system/scripts/env.sh"
# Allows the user to override the default Nim compiler version and repo URL.
export NIM_COMMIT="${NIM_COMMIT:-${NIM_VERSION}}"
export NIM_REPO="${NIM_REPO:-${NIM_REPO_URL}}"
if ! [ -f "$ENV_FILE" ]; then
# Before the first "make update", the env file doesn't exist, so just run
# the command that comes after (without a child shell), if any. Running