2021-12-20 19:12:18 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2024-01-19 13:45:03 +00:00
|
|
|
NIM_VERSION="f45bdea94ac4ed9a9bae03426275456aeb0cab2a"
|
|
|
|
NIM_REPO_URL="https://github.com/gmega/Nim"
|
|
|
|
|
2021-12-20 19:12:18 +00:00
|
|
|
# We use ${BASH_SOURCE[0]} instead of $0 to allow sourcing this file
|
|
|
|
# and we fall back to a Zsh-specific special var to also support Zsh.
|
|
|
|
REL_PATH="$(dirname ${BASH_SOURCE[0]:-${(%):-%x}})"
|
|
|
|
ABS_PATH="$(cd ${REL_PATH}; pwd)"
|
2024-01-19 13:45:03 +00:00
|
|
|
|
|
|
|
export NIM_COMMIT="${NIM_COMMIT:-${NIM_VERSION}}"
|
|
|
|
export NIM_REPO="${NIM_REPO_URL:-${NIM_REPO_URL}}"
|
2021-12-20 19:12:18 +00:00
|
|
|
source ${ABS_PATH}/vendor/nimbus-build-system/scripts/env.sh
|