blob: 66c73c89c4e9c08277756fd1894d1222ed4a248d [file] [log] [blame]
Tim Windelschmidt4a3e05f2024-07-30 18:19:21 +02001# third_party external repositories
2
3git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
4http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
5http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
6
7# Used by tests in cloud/takeover
8http_file(
9 name = "debian_11_cloudimage",
10 sha256 = "14caeec68ba3129a115a9b57396d08dc0973cc9f569ce049232d7d15d768ad41",
11 urls = [
12 "https://cloud.debian.org/images/cloud/bullseye/20230124-1270/debian-11-genericcloud-amd64-20230124-1270.qcow2",
13 ],
14)
15
16# Used to include staticcheck as nogo analyzer
17http_archive(
18 name = "com_github_sluongng_nogo_analyzer",
19 integrity = "sha256-p0peRHUdKS0XvYeeWqi0C6qUtdwvBD3x46y7PiPq0HM=",
20 strip_prefix = "nogo-analyzer-0.0.2",
21 urls = [
22 "https://github.com/sluongng/nogo-analyzer/archive/refs/tags/v0.0.2.tar.gz",
23 ],
24)
25
26git_repository(
27 name = "boringssl",
28 commit = "d7278cebad5b8eda0901246f2215344cffece4f4",
29 remote = "https://boringssl.googlesource.com/boringssl",
30)
31
32# CockroachDB binary used for tests.
33#
34# WARNING: Not distributed under an OSI certified license. Must only be used in
35# tests, not be redistributed!
36http_archive(
37 name = "cockroach",
38 build_file_content = """
39exports_files([
40 "cockroach"
41])
42""",
43 sha256 = "0821cff5770400fb94c8b6c2ab338d96f4114fbf2b3206bc8a6dcf62f9c0f4ea",
44 strip_prefix = "cockroach-v22.1.6.linux-amd64",
45 urls = [
46 # TODO: select() to pick other host architectures.
47 "https://binaries.cockroachdb.com/cockroach-v22.1.6.linux-amd64.tgz",
48 ],
49)
50
51# CockroachDB repository used for linter passes.
52http_archive(
53 name = "com_github_cockroachdb_cockroach",
54 integrity = "sha256-3xYgvXmuPvrGgtSzfoK/K9p/FCH0eMZywAAL10A41k0=",
55 strip_prefix = "cockroach-23.2.4",
56 urls = [
57 "https://github.com/cockroachdb/cockroach/archive/v23.2.4.tar.gz",
58 ],
59)
60
61
62# Derived from Mozilla NSS, currently needed for containerd to be able to pull images
63http_file(
64 name = "cacerts",
65 sha256 = "1bf458412568e134a4514f5e170a328d11091e071c7110955c9884ed87972ac9",
66 urls = ["https://curl.se/ca/cacert-2024-07-02.pem"],
67)
68
69# lz4, the library and the tool.
70http_archive(
71 name = "com_github_lz4_lz4",
72 patch_args = ["-p1"],
73 patches = ["//third_party/lz4:build.patch"],
74 sha256 = "658ba6191fa44c92280d4aa2c271b0f4fbc0e34d249578dd05e50e76d0e5efcc",
75 strip_prefix = "lz4-1.9.2",
76 urls = ["https://github.com/lz4/lz4/archive/v1.9.2.tar.gz"],
77)
78
79# ini.h, a tiny ini parser library
80http_archive(
81 name = "inih",
82 build_file = "@//third_party/inih:inih.bzl",
83 sha256 = "01b0366fdfdf6363efc070c2f856f1afa33e7a6546548bada5456ad94a516241",
84 strip_prefix = "inih-r53",
85 urls = ["https://github.com/benhoyt/inih/archive/r53.tar.gz"],
86)
87
88# qboot bootloader for MicroVMs
89http_archive(
90 name = "com_github_bonzini_qboot",
91 build_file = "//third_party/qboot:qboot.bzl",
92 sha256 = "a643b2486fbee57b969659d408984094ca9afa1a048317dd3f5d3022e47213e8",
93 strip_prefix = "qboot-a5300c4949b8d4de2d34bedfaed66793f48ec948",
94 urls = ["https://github.com/bonzini/qboot/archive/a5300c4949b8d4de2d34bedfaed66793f48ec948.tar.gz"],
95)
96
97git_repository(
98 name = "gperf",
99 commit = "de9373c2d48a3edf29862eb8be44764a7f7d24c6",
100 remote = "https://github.com/monogon-dev/gperf.git",
101 shallow_since = "1615306886 +0100",
102)