rules_cc/cc/repositories.bzl

20 lines
682 B
Python

"""Repository rules entry point module for rules_cc."""
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def rules_cc_dependencies():
_maybe(
http_archive,
name = "bazel_skylib",
sha256 = "2ea8a5ed2b448baf4a6855d3ce049c4c452a6470b1efd1504fdb7c1c134d220a",
strip_prefix = "bazel-skylib-0.8.0",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/0.8.0.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/archive/0.8.0.tar.gz",
],
)
def _maybe(repo_rule, name, **kwargs):
if not native.existing_rule(name):
repo_rule(name = name, **kwargs)