#!/usr/bin/env sh

STACK_CONFIG_PATH=${PWD}/stacks/${stack}
STACK_CONFIG=${STACK_CONFIG_PATH}/config.json
SPACK_VERSION=$(jq -r .spack.version ${STACK_CONFIG})

STACK_LOCATION=$(jq -r .stack.mount_point ${STACK_CONFIG})
SPACK_SYSTEM_CONFIG_PATH=${STACK_LOCATION}/stack/${stack}/environment
