generated from bazel-contrib/rules-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMODULE.bazel
50 lines (41 loc) · 1.93 KB
/
MODULE.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
###############################################################################
# Bazel now uses Bzlmod by default to manage external dependencies.
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
#
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
###############################################################################
module(
name = "rules_lua",
version = "0.0.1",
compatibility_level = 0,
)
bazel_dep(name = "rules_go", version = "0.45.1", dev_dependency = True)
bazel_dep(name = "gazelle", version = "0.35.0", dev_dependency = True, repo_name = "bazel_gazelle")
bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True)
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True)
bazel_dep(name = "platforms", version = "0.0.8")
bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "rules_foreign_cc", version = "0.13.0")
bazel_dep(name = "aspect_bazel_lib", version = "2.4.1")
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "luarocks",
build_file = "//lua:luarocks.BUILD.bazel",
sha256 = "a37e4a3faa835d1b6437ab2d9e2271909664ab614595cb7df1b67ddafe4e2193",
strip_prefix = "luarocks-3.11.1",
urls = ["https://github.com/luarocks/luarocks/archive/refs/tags/v3.11.1.tar.gz"],
)
lua_toolchains = use_extension("@rules_lua//lua:repositories.bzl", "lua_toolchains")
lua_toolchains.luajit(
name = "luajit",
version = "v2.1",
)
use_repo(lua_toolchains, "luajit_toolchains")
register_toolchains("@luajit_toolchains//:x86_64-unknown-linux-gnu_toolchain")
fennel_toolchains = use_extension("@rules_lua//fennel:repositories.bzl", "fennel_toolchains")
fennel_toolchains.fennel(
name = "fennel",
version = "1.4.0",
)
use_repo(fennel_toolchains, "fennel_toolchains")
register_toolchains("@fennel_toolchains//:fennel_toolchain")