-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
67 lines (49 loc) · 1.96 KB
/
WORKSPACE
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
workspace(name = "home-ops")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Age binary
http_archive(
name = "age",
build_file = "@home-ops//bazel/third_party:age.bazel",
sha256 = "2ae71cb3ea761118937a944083f057cfd42f0ef11d197ce72fc2b8780d50c4ef",
url = "https://github.com/FiloSottile/age/releases/download/v1.2.0/age-v1.2.0-linux-amd64.tar.gz",
)
# Packer binary
http_archive(
name = "packer",
build_file = "@home-ops//bazel/third_party:packer.bazel",
sha256 = "790183b1febe0f3f919bac22b193dfbba031a6e30a148ecc69816fcc47eec702",
url = "https://releases.hashicorp.com/packer/1.8.4/packer_1.8.4_linux_386.zip",
)
# Skylib
http_archive(
name = "bazel_skylib",
sha256 = "bc283cdfcd526a52c3201279cda4bc298652efa898b10b4db0837dc51652756f",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz",
],
)
# Python
http_archive(
name = "rules_python",
sha256 = "778aaeab3e6cfd56d681c89f5c10d7ad6bf8d2f1a72de9de55b23081b2d31618",
strip_prefix = "rules_python-0.34.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.34.0/rules_python-0.34.0.tar.gz",
)
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
py_repositories()
python_register_toolchains(
name = "python3_10",
python_version = "3.10",
)
# Files
http_archive(
name = "rules_file",
sha256 = "1a9c25cb2a0aa240838175f86e42ca48683a914270641f8eae17c27bc78e9299",
strip_prefix = "rules_file-a79a1036c27eb545cc6e7e08d99de525544bac4f",
url = "https://github.com/rivethealth/rules_file/archive/a79a1036c27eb545cc6e7e08d99de525544bac4f.zip",
)
load("@rules_file//rules:init.bzl", "file_init")
file_init()
load("@rules_file//rules:workspace.bzl", "file_repositories")
file_repositories()