Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/MODULE.bazel
blob: c41964283b8043d1294ca6217b40da4f5b1e1b90 (plain)
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
module(name = "catch3", version = "0.3.0.2")

bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "rules_cc", version = "0.2.17")
bazel_dep(name = "rules_license", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.0.0")

# The archives third_party/ holds copies of. Renovate changes a version; the
# pull request then needs the digest of the new archive and
# `bazelisk run //tools:third_party -- --update`, which CI asks for.
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# renovate: datasource=github-tags depName=ibireme/yyjson
YYJSON_VERSION = "0.13.0"

http_archive(
    name = "yyjson_archive",
    build_file_content = 'exports_files(["src/yyjson.c", "src/yyjson.h"])',
    sha256 = "34e0f62a2bc11ab20d601e8ca1cc2b2079503aa45119a19133d89d19b94a0fae",
    strip_prefix = "yyjson-" + YYJSON_VERSION,
    urls = ["https://github.com/ibireme/yyjson/archive/refs/tags/" + YYJSON_VERSION + ".tar.gz"],
)

# renovate: datasource=github-tags depName=zeux/pugixml extractVersion=^v(?<version>.+)$
PUGIXML_VERSION = "1.16"

http_archive(
    name = "pugixml_archive",
    build_file_content = 'exports_files(["src/pugiconfig.hpp", "src/pugixml.cpp", "src/pugixml.hpp"])',
    sha256 = "357bcab8877dc9943f355d3a72daba1b053238ba955f50fa81586afb65090219",
    strip_prefix = "pugixml-" + PUGIXML_VERSION,
    urls = ["https://github.com/zeux/pugixml/archive/refs/tags/v" + PUGIXML_VERSION + ".tar.gz"],
)

# rules_swift reaches the graph through protobuf and rules_apple. Up to 3.4.1
# its Windows autoconfiguration, which runs whenever swiftc.exe is on PATH,
# writes a toolchain that indexes APPLE_PLATFORMS_CONSTRAINTS with an
# undefined name, and every build on such a host fails during analysis.
# 3.4.2 is the first fixed release with the same compatibility level and no
# newer protobuf.
single_version_override(
    module_name = "rules_swift",
    version = "3.4.2",
)