github.com/prysmaticlabs/prysm@v1.4.4/third_party/herumi/herumi.bzl (about) 1 load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") 2 3 """ 4 Herumi's BLS library for go depends on 5 - herumi/mcl 6 - herumi/bls 7 - herumi/bls-eth-go-binary 8 """ 9 10 def bls_dependencies(): 11 _maybe( 12 http_archive, 13 name = "herumi_bls_eth_go_binary", 14 strip_prefix = "bls-eth-go-binary-e81c3e745d31cfee089456774aa707bc98c76523", 15 urls = [ 16 "https://github.com/herumi/bls-eth-go-binary/archive/e81c3e745d31cfee089456774aa707bc98c76523.tar.gz", 17 ], 18 sha256 = "9d794d0856bfab78953798b5f446148ed5413c5e5695857c34e2282a80439f2c", 19 build_file = "@prysm//third_party/herumi:bls_eth_go_binary.BUILD", 20 ) 21 _maybe( 22 http_archive, 23 name = "herumi_mcl", 24 strip_prefix = "mcl-c08437c973004cf64895da197eb7076d44354aff", 25 urls = [ 26 "https://github.com/herumi/mcl/archive/c08437c973004cf64895da197eb7076d44354aff.tar.gz", 27 ], 28 sha256 = "4118dfdcf86d98cdc78349cf9e51a0b58f4ecfea4b974a3d2df9ea11dd2cb6ad", 29 build_file = "@prysm//third_party/herumi:mcl.BUILD", 30 ) 31 _maybe( 32 http_archive, 33 name = "herumi_bls", 34 strip_prefix = "bls-4ae022a6bb71dc518d81f22141d71d2a1f767ab3", 35 urls = [ 36 "https://github.com/herumi/bls/archive/4ae022a6bb71dc518d81f22141d71d2a1f767ab3.tar.gz", 37 ], 38 sha256 = "9f07c0ce33502e3bd2a3018814ed509093a0865ce16fa16cefff7ba11fb4537e", 39 build_file = "@prysm//third_party/herumi:bls.BUILD", 40 ) 41 42 def _maybe(repo_rule, name, **kwargs): 43 if name not in native.existing_rules(): 44 repo_rule(name = name, **kwargs)