-
Notifications
You must be signed in to change notification settings - Fork 5
/
WORKSPACE.bazel
40 lines (35 loc) · 1.27 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
workspace( name = "ppx_optcomp" )
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
#############
http_archive(
name = "bazel_skylib",
urls = [
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
],
sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
)
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
###############
git_repository(
name = "obazl_tools_bazel",
remote = "https://github.com/obazl/tools_bazel",
branch = "main",
)
git_repository(
name = "obazl_rules_opam",
remote = "https://github.com/obazl/rules_opam",
branch = "main",
)
git_repository(
name = "obazl_rules_ocaml",
remote = "https://github.com/obazl/rules_ocaml",
branch = "main",
)
load("@obazl_rules_opam//opam:bootstrap.bzl", opam_configure = "configure")
load("//bzl:opam.bzl", "opam")
switch = opam_configure(opam = opam)
load("@obazl_rules_ocaml//ocaml:bootstrap.bzl", ocaml_configure = "configure")
ocaml_configure( switch = switch )