forked from MinaProtocol/mina
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE.bazel
94 lines (74 loc) · 2.92 KB
/
WORKSPACE.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
workspace( name = "coda" )
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
################################################################
#### OCAML ####
git_repository(
name = "obazl_rules_ocaml",
remote = "https://github.com/obazl/rules_ocaml",
branch = "dev",
# commit = "feef897197b36b14b65ffdf00b9badcbdb8f42f4",
# shallow_since = "1593623637 -0500"
)
load("@obazl_rules_ocaml//ocaml:bootstrap.bzl",
"ocaml_configure",
"opam_configure",
"ocaml_register_toolchains")
opam_configure()
ocaml_configure()
ocaml_register_toolchains(installation="host")
################################################################
local_repository( name = "async_kernel" , path = "src/external/async_kernel")
local_repository( name = "graphql_ppx" , path = "src/external/graphql_ppx")
local_repository( name = "ocaml_extlib" , path = "src/external/ocaml_extlib")
local_repository( name = "ppx_optcomp" , path = "src/external/ppx_optcomp")
local_repository( name = "ppx_version" , path = "src/external/ppx_version")
local_repository( name = "rpc_parallel" , path = "src/external/rpc_parallel")
######################################
######## Golang Support ########
http_archive(
name = "io_bazel_rules_go",
sha256 = "b725e6497741d7fc2d55fcc29a276627d10e43fa5d0bb692692890ae30d98d00",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.24.3/rules_go-v0.24.3.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.24.3/rules_go-v0.24.3.tar.gz",
],
)
load(
"@io_bazel_rules_go//go:deps.bzl",
"go_download_sdk",
"go_register_toolchains",
"go_rules_dependencies",
)
go_download_sdk(
name = "go_sdk",
version = "1.13",
)
go_rules_dependencies()
go_register_toolchains()
## protobuf needed by some go deps
git_repository(
name = "com_google_protobuf",
commit = "09745575a923640154bcf307fba8aedff47f240a",
remote = "https://github.com/protocolbuffers/protobuf",
shallow_since = "1558721209 -0700",
)
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
# gazelle:proto disable_global
http_archive(
name = "bazel_gazelle",
sha256 = "d4113967ab451dd4d2d767c3ca5f927fec4b30f3b2c6f8135a2033b9c05a5687",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.0/bazel-gazelle-v0.22.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.0/bazel-gazelle-v0.22.0.tar.gz",
],
)
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
local_repository(
name = "libp2p_helper",
path = "src/app/libp2p_helper"
)
load("@libp2p_helper//bzl/libp2p:deps.bzl", "libp2p_bootstrap")
libp2p_bootstrap()
gazelle_dependencies(go_repository_default_config = "@libp2p_helper//:WORKSPACE.bazel")