Something like this: https://github.com/openxla/xla/blob/main/third_party/gpus/cuda/hermetic/cuda_redist_versions.bzl
Activity
[-][Feat] How to use hermetic cuda like OpenXla[/-][+][Feat] How to use hermetic cuda like OpenXLA[/+]cloudhan commentedon Feb 1, 2026
See https://github.com/bazel-contrib/rules_cuda/blob/881aac6d8b1de7613cf1f14faefd89a49984508e/tests/integration/toolchain_redist_json/MODULE.bazel
For a more comprehensive example https://github.com/cloudhan/cuda-samples/blob/bazel-cuda-13-redist-json/MODULE.bazel