generated from bazel-contrib/rules-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
WORKSPACE.bazel
69 lines (53 loc) · 2.07 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
# Override http_archive for local testing
local_repository(
name = "rules_zig",
path = "../..",
)
local_repository(
name = "runfiles_library_dependency",
path = "runfiles-library/dependency",
)
local_repository(
name = "runfiles_library_transitive_dependency",
path = "runfiles-library/dependency/transitive-dependency",
)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_bazel_lib",
sha256 = "a272d79bb0ac6b6965aa199b1f84333413452e87f043b53eca7f347a23a478e8",
strip_prefix = "bazel-lib-2.9.3",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.9.3/bazel-lib-v2.9.3.tar.gz",
)
load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "aspect_bazel_lib_register_toolchains")
aspect_bazel_lib_dependencies()
aspect_bazel_lib_register_toolchains()
http_archive(
name = "io_buildbuddy_buildbuddy_toolchain",
sha256 = "fd2230fe0cf2bad2921c99f0c5e8646d340e2b7ecdd736113142dbc38db9b7ab",
strip_prefix = "buildbuddy-toolchain-4aa9b0edafd2fbad733ed3073b1455b0695ae781",
urls = ["https://github.com/buildbuddy-io/buildbuddy-toolchain/archive/4aa9b0edafd2fbad733ed3073b1455b0695ae781.tar.gz"],
)
load("@io_buildbuddy_buildbuddy_toolchain//:deps.bzl", "buildbuddy_deps")
buildbuddy_deps()
load("@io_buildbuddy_buildbuddy_toolchain//:rules.bzl", "buildbuddy")
buildbuddy(name = "buildbuddy_toolchain")
#---SNIP--- Below here is re-used in the workspace snippet published on releases
###################
# rules_zig setup #
###################
# Fetches the rules_zig dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@rules_zig//zig:repositories.bzl", "rules_zig_dependencies", "zig_register_toolchains")
rules_zig_dependencies()
zig_register_toolchains(
name = "zig",
zig_versions = [
"0.13.0",
"0.12.1",
"0.12.0",
"0.11.0",
],
)