-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE.bzlmod
218 lines (178 loc) · 7.85 KB
/
WORKSPACE.bzlmod
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
# ------------------------------------ tilt ------------------------------------ #
# From https://github.com/tilt-dev/tilt/releases
http_archive(
name = "tilt_linux_arm64",
build_file = "//tools/tilt:BUILD.repositories.bazel.tpl",
sha256 = "49ce19981761b6102cf5fe3cb15d6cfdf6b56aa2be7a1178457955c7476bf21f",
url = "https://github.com/tilt-dev/tilt/releases/download/v0.33.11/tilt.0.33.11.linux.arm64.tar.gz",
)
http_archive(
name = "tilt_linux_amd64",
build_file = "//tools/tilt:BUILD.repositories.bazel.tpl",
sha256 = "b14cc9d33b18c8bdf69b543914696b252e553c9361f65d2ed0cded302698708d",
url = "https://github.com/tilt-dev/tilt/releases/download/v0.33.11/tilt.0.33.11.linux.x86_64.tar.gz",
)
http_archive(
name = "tilt_darwin_arm64",
build_file = "//tools/tilt:BUILD.repositories.bazel.tpl",
sha256 = "dbb1716432a79a31b9c5f1842cfce02f2abbf9bcfa789d9afbc41d155e930855",
url = "https://github.com/tilt-dev/tilt/releases/download/v0.33.11/tilt.0.33.11.mac.arm64.tar.gz",
)
# ------------------------------------ pulumi ------------------------------------ #
http_archive(
name = "pulumi_linux_arm64",
build_file = "//tools/pulumi:BUILD.repositories.bazel.tpl",
sha256 = "a33d0b61a1308f9d8c746afb4d7a3ccba55db98208c16fbb7d6640de99c0f725",
url = "https://github.com/pulumi/pulumi/releases/download/v3.86.0/pulumi-v3.86.0-linux-arm64.tar.gz",
)
http_archive(
name = "pulumi_linux_amd64",
build_file = "//tools/pulumi:BUILD.repositories.bazel.tpl",
sha256 = "3227b656f624410f745cef4977430f96fd3daab1118f2180ab4bda8ce029168c",
url = "https://github.com/pulumi/pulumi/releases/download/v3.86.0/pulumi-v3.86.0-linux-x64.tar.gz",
)
http_archive(
name = "pulumi_darwin_arm64",
build_file = "//tools/pulumi:BUILD.repositories.bazel.tpl",
sha256 = "5514673cfbead3ac0726ca8c5469ae2bc13f849ac1bd375b00742df9d78e1443",
url = "https://github.com/pulumi/pulumi/releases/download/v3.86.0/pulumi-v3.86.0-darwin-arm64.tar.gz",
)
# ------------------------------------ buildbuddy Remote Build Execution ------------------------------------ #
http_archive(
name = "io_buildbuddy_buildbuddy_toolchain",
sha256 = "a430e0b50ee9c64713cfc476c610f80e9a8a3f84fb27c96f0da886f21d5bf3e1",
strip_prefix = "buildbuddy-toolchain-f0a5cf35d2f580e623996fcf13108f319a79d8c5",
urls = [
"https://github.com/buildbuddy-io/buildbuddy-toolchain/archive/f0a5cf35d2f580e623996fcf13108f319a79d8c5.tar.gz",
],
)
load("@io_buildbuddy_buildbuddy_toolchain//:deps.bzl", "buildbuddy_deps")
buildbuddy_deps()
load("@io_buildbuddy_buildbuddy_toolchain//:rules.bzl", "UBUNTU20_04_IMAGE", "buildbuddy")
buildbuddy(
name = "buildbuddy_toolchain",
container_image = UBUNTU20_04_IMAGE,
)
# ------------------------------------ teleport client ------------------------------------ #
# from https://goteleport.com/download/#install-links
http_archive(
name = "teleport_linux_arm64",
build_file = "//tools/teleport:BUILD.repositories.bazel.tpl",
sha256 = "a575222f970ff8d2137b96fe31e45210d4394bba2ac31b55900c517852880458",
url = "https://cdn.teleport.dev/teleport-v13.0.0-linux-arm64-bin.tar.gz",
)
http_archive(
name = "teleport_linux_amd64",
build_file = "//tools/teleport:BUILD.repositories.bazel.tpl",
sha256 = "6d357e2e2a54a713e79fc0ce9068470fb202ac4fb0e27bafef0fe5a377ada10f",
url = "https://cdn.teleport.dev/teleport-v13.0.0-linux-amd64-bin.tar.gz",
)
http_archive(
name = "teleport_darwin_arm64",
build_file = "//tools/teleport:BUILD.repositories.bazel.tpl",
sha256 = "eff41d350f5bfd45de3979db7013003fe3f6d6678f4e80aa5ca5366a0d9aca49",
url = "https://cdn.teleport.dev/teleport-v13.0.0-darwin-arm64-bin.tar.gz",
)
# ------------------------------------ 1password client ------------------------------------ #
# From https://app-updates.agilebits.com/product_history/CLI2
http_archive(
name = "onepassword_linux_arm64",
build_file = "//tools/onepassword:BUILD.repositories.bazel.tpl",
sha256 = "b93a8e0dc42c0979bb13047ac4412bd73092be57bb84ad223eeca295151159fa",
url = "https://cache.agilebits.com/dist/1P/op2/pkg/v2.18.0/op_linux_arm64_v2.18.0.zip",
)
http_archive(
name = "onepassword_linux_amd64",
build_file = "//tools/onepassword:BUILD.repositories.bazel.tpl",
sha256 = "2baf610b476727f24c62cc843419f55b157e1a05521a698c1c8b4ed676a766aa",
url = "https://cache.agilebits.com/dist/1P/op2/pkg/v2.18.0/op_linux_amd64_v2.18.0.zip",
)
http_archive(
name = "onepassword_darwin_arm64",
build_file = "//tools/onepassword:BUILD.repositories.bazel.tpl",
sha256 = "b9ae52df3003216b454f6ac0a402c71bcfb4804eafb3ee3593a84a2002930d27",
url = "https://cache.agilebits.com/dist/1P/op2/pkg/v2.22.0/op_darwin_arm64_v2.22.0.zip",
)
# ------------------------------------ mutagen ------------------------------------ #
# From https://github.com/mutagen-io/mutagen/releases
http_archive(
name = "mutagen_linux_arm64",
build_file = "//tools/mutagen:BUILD.repositories.bazel.tpl",
sha256 = "60fdd4f2abe68d3c23b22e48be556038a29175a65877dd43128d56319a6bcae0",
url = "https://github.com/mutagen-io/mutagen/releases/download/v0.17.2/mutagen_linux_arm64_v0.17.2.tar.gz",
)
http_archive(
name = "mutagen_linux_amd64",
build_file = "//tools/mutagen:BUILD.repositories.bazel.tpl",
sha256 = "85d967462ade994d37fc8d4906579d33b6fbb1744bab4a7cceb0c12424fb0f1d",
url = "https://github.com/mutagen-io/mutagen/releases/download/v0.17.2/mutagen_linux_amd64_v0.17.2.tar.gz",
)
http_archive(
name = "mutagen_darwin_arm64",
build_file = "//tools/mutagen:BUILD.repositories.bazel.tpl",
sha256 = "dc06db9ae11381d1b3fc6057cda3854580f1476463a665ad9b168a973a81afad",
url = "https://github.com/mutagen-io/mutagen/releases/download/v0.17.2/mutagen_darwin_arm64_v0.17.2.tar.gz",
)
# ------------------------------------ bunq2ynab ------------------------------------ #
git_repository(
name = "bunq2ynab",
build_file = "//tools/bunq2ynab:BUILD.repositories.bazel.tpl",
commit = "8defd2b3576c06436d7fcc58c882426dd96e2a97",
remote = "https://github.com/mvgijssel/bunq2ynab.git",
)
# new_local_repository(
# name = "bunq2ynab",
# build_file = "//tools/bunq2ynab:BUILD.repositories.bazel.tpl",
# path = "/workspaces/bunq2ynab",
# )
# ------------------------------------ rules_nixpkgs ------------------------------------ #
http_archive(
name = "io_tweag_rules_nixpkgs",
sha256 = "b01f170580f646ee3cde1ea4c117d00e561afaf3c59eda604cf09194a824ff10",
strip_prefix = "rules_nixpkgs-0.9.0",
urls = ["https://github.com/tweag/rules_nixpkgs/archive/refs/tags/v0.9.0.tar.gz"],
)
load("@io_tweag_rules_nixpkgs//nixpkgs:repositories.bzl", "rules_nixpkgs_dependencies")
rules_nixpkgs_dependencies()
load("@io_tweag_rules_nixpkgs//nixpkgs:nixpkgs.bzl", "nixpkgs_git_repository", "nixpkgs_package")
nixpkgs_git_repository(
name = "nixpkgs",
revision = "23.05", # Any tag or commit hash
sha256 = "", # optional sha to verify package integrity!
)
nixpkgs_package(
name = "python_base_image_amd64",
build_file_content = """
package(default_visibility = [ "//visibility:public" ])
filegroup(
name = "image",
srcs = ["image.tar.gz"],
)
""",
nix_file = "//tools/python:python_base_image.nix",
nixopts = [
"--argstr",
"targetArch",
"x86_64",
],
repository = "@nixpkgs//:default.nix",
)
nixpkgs_package(
name = "python_base_image_arm64",
build_file_content = """
package(default_visibility = [ "//visibility:public" ])
filegroup(
name = "image",
srcs = ["image.tar.gz"],
)
""",
nix_file = "//tools/python:python_base_image.nix",
nixopts = [
"--argstr",
"targetArch",
"aarch64",
],
repository = "@nixpkgs//:default.nix",
)