git clone --depth=2 --branch=releases/v1.1 https://github.com/spack/spack.git ~/spack
source ~/spack/share/spack/setup-env.sh
# Ensure that this fine gcc@11.4 as compiler
spack compiler find
# You can remove any extra compilers found by above command
# by running:
# spack compiler rm <compiler spec>
spack mirror add gitlab-mirror oci://registry.gitlab.com/ska-telescope/sdp/ska-sdp-spack/spack-buildcache
git clone https://gitlab.com/ska-telescope/sdp/ska-sdp-spack.git ~/ska-sdp-spack
spack repo add ~/ska-sdp-spack
spack env activate ~/ska-sdp-spack/env/aws
# To test
spack install dp3