blob: 114c3bce5e5a346109ef05521c71e1a52dca6eef [file] [log] [blame]
# buildifier: disable=module-docstring
def _repo_rule_impl(ctx):
ctx.file("BUILD", "")
my_repo = repository_rule(
implementation = _repo_rule_impl,
doc = "Minimal example of a repository rule.",
attrs = {
"useless": attr.string(
doc = """This argument will be ignored.
You don't have to specify it, but you may.
""",
default = "ignoreme",
),
},
environ = ["FOO_CC", "BAR_PATH"],
)