blob: 1932b57c945c287af81c80c4e8bbbb59380502d5 [file] [log] [blame]
Carmelo Cascone72893b72018-08-09 00:59:06 -07001load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2
3PROTOBUF_VER = "3.6.1"
4SHA = "0a4c6d0678eb2f063df332cff1a41647ef692c067b5cfb19e51bca778e79d9e0"
5
6def generate_protobuf():
7 http_archive(
8 name = "com_google_protobuf",
9 urls = ["https://github.com/google/protobuf/releases/download/v%s/protobuf-all-%s.zip"
10 % (PROTOBUF_VER, PROTOBUF_VER)],
11 sha256 = SHA,
12 strip_prefix = "protobuf-" + PROTOBUF_VER,
13 )