IMPORTANT: The Bazel docs have moved! Please update your bookmark to https://bazel.build/rules/lib/repository_rule

You can read about the migration, and let us know what you think.

Extensions > API reference > repository_rule

repository_rule

A callable value that may be invoked during evaluation of the WORKSPACE file or within the implementation function of a module extension to instantiate and return a repository rule.