forked from lalten/rules_cpan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMODULE.bazel
38 lines (32 loc) · 1.04 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
module(
name = "rules_cpan_example",
version = "0.0.0",
)
bazel_dep(name = "rules_perl", version = "0.2.4")
bazel_dep(name = "rules_cpan")
local_path_override(
module_name = "rules_cpan",
path = "..",
)
cpan = use_extension("@rules_cpan//cpan:extensions.bzl", "cpan")
cpan.install(
name = "cpan_deps",
lock = "//:cpanfile-lock.json",
)
use_repo(cpan, "cpan_deps")
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "lcov",
build_file = "//:lcov.BUILD",
integrity = "sha256-TQHZ9VGj8OhozoR0L7YKrEQH4/wWImNaB+KdcOOPH68=",
strip_prefix = "lcov-2.1",
url = "https://github.com/linux-test-project/lcov/releases/download/v2.1/lcov-2.1.tar.gz",
)
# rules_cpan needs a working Python toolchain, so we register one
bazel_dep(name = "rules_python", version = "1.2.0-rc0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
configure_coverage_tool = False,
is_default = True,
python_version = "3.13.1",
)