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