Skip to content
Snippets Groups Projects
Commit 0507b24e authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Changing require to avoid multiple tk

parent efe66471
No related branches found
No related tags found
1 merge request!3Feat/stack pinot noir
......@@ -91,16 +91,31 @@ echo "packages:" > ${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml
export system_compiler=$(jq -Mrc '
.stack
| .system_arch as $arch
| .system_compiler
| to_entries
| .[].value
| "\(.compiler)@\(.version) \($arch)"
| "\(.compiler)@\(.version)"
' ${STACK_CONFIG})
export system_arch=$(jq -Mrc '
.stack.system_arch
' ${STACK_CONFIG})
# cat <<EOF >> ${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml
# all:
# prefer:
# EOF
# jq -Mrc '
# .stack.system_packages
# | map(" - spec: \"^\(.)%\(env.system_compiler)\"\n when: \"%nvhpc ^\(.)\"")
# | .[]
# ' ${STACK_CONFIG} >> ${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml
jq -Mrc '
.stack.system_packages
| map(" \(.):\n require:\n - spec: \"%\(env.system_compiler)\"")
| map(" \(.):\n require:\n - \"%\(env.system_compiler)\"\n - \"\(env.system_arch)\"")
| .[]
' ${STACK_CONFIG} >> ${SPACK_SYSTEM_CONFIG_PATH}/packages.yaml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment