-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMODULE.bazel
More file actions
49 lines (41 loc) · 1.64 KB
/
MODULE.bazel
File metadata and controls
49 lines (41 loc) · 1.64 KB
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
module(
name = "xpkgutil",
version = "0.0.1",
bazel_compatibility = [">=7.2.1"],
compatibility_level = 1,
)
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "bazel_lib", version = "3.1.1")
bazel_dep(name = "libarchive", version = "3.8.1.bcr.2")
bazel_dep(name = "xz", version = "5.4.5.bcr.8") # bump xz to build on windows arm64
bazel_dep(name = "llvm", version = "0.6.1")
bazel_dep(name = "rules_cc", version = "0.2.14")
bazel_dep(name = "bazel_skylib", version = "1.9.0", dev_dependency = True)
bazel_dep(name = "rules_shell", version = "0.5.0", dev_dependency = True)
bazel_dep(name = "rules_zig", version = "0.12.3", dev_dependency = True)
register_toolchains(
"@llvm//toolchain:all",
)
single_version_override(
module_name = "libarchive",
patch_strip = 1,
patches = [
"//patches:0001-libarchive_enable_xar_support.patch",
"//patches:0002-feat-add-pbzx-read-filter.patch",
"//patches:0003-give-mingw-acceptable-posix-types.patch",
],
)
## TESTS
http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
http_file(
name = "component_pkg",
downloaded_file_path = "component.pkg",
sha256 = "ba3453d62b3d2babf67f3a4a44e8073d6555c85f114856f4390a1f53bd76e24a",
urls = ["https://swcdn.apple.com/content/downloads/52/01/082-41241-A_0747ZN8FHV/dectd075r63pppkkzsb75qk61s0lfee22j/CLTools_macOSNMOS_SDK.pkg"],
)
http_file(
name = "product_pkg",
downloaded_file_path = "product.pkg",
sha256 = "50b709f72cb5ed87d5882901923face981dd657569717761832c36db3bf08238",
urls = ["https://www.python.org/ftp/python/3.14.3/python-3.14.3-macos11.pkg"],
)