2023-04-27 04:27:43 -04:00
|
|
|
"""hermetic cc toolchain (bazel-zig-cc) build rules"""
|
2023-01-30 11:15:59 -05:00
|
|
|
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
2023-04-27 04:27:43 -04:00
|
|
|
def hermetic_cc_deps():
|
|
|
|
"""Loads the dependencies for hermetic_cc_toolchain."""
|
2023-01-30 11:15:59 -05:00
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "bazel_skylib",
|
2023-06-13 12:03:40 -04:00
|
|
|
sha256 = "66ffd9315665bfaafc96b52278f57c7e2dd09f5ede279ea6d39b2be471e7e3aa",
|
2023-01-30 11:15:59 -05:00
|
|
|
urls = [
|
2023-06-13 12:03:40 -04:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz",
|
|
|
|
"https://cdn.confidential.cloud/constellation/cas/sha256/66ffd9315665bfaafc96b52278f57c7e2dd09f5ede279ea6d39b2be471e7e3aa",
|
|
|
|
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz",
|
2023-01-30 11:15:59 -05:00
|
|
|
],
|
2023-03-30 03:41:56 -04:00
|
|
|
type = "tar.gz",
|
2023-01-30 11:15:59 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
2023-04-27 04:27:43 -04:00
|
|
|
name = "hermetic_cc_toolchain",
|
2023-03-30 03:41:56 -04:00
|
|
|
urls = [
|
2023-09-26 09:48:20 -04:00
|
|
|
"https://cdn.confidential.cloud/constellation/cas/sha256/28fc71b9b3191c312ee83faa1dc65b38eb70c3a57740368f7e7c7a49bedf3106",
|
|
|
|
"https://github.com/uber/hermetic_cc_toolchain/releases/download/v2.1.2/hermetic_cc_toolchain-v2.1.2.tar.gz",
|
2023-03-30 03:41:56 -04:00
|
|
|
],
|
|
|
|
type = "tar.gz",
|
2023-09-26 09:48:20 -04:00
|
|
|
sha256 = "28fc71b9b3191c312ee83faa1dc65b38eb70c3a57740368f7e7c7a49bedf3106",
|
2023-01-30 11:15:59 -05:00
|
|
|
)
|