-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMODULE.bazel
85 lines (71 loc) · 2.83 KB
/
MODULE.bazel
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
module(
name = "bazel-orfs",
version = "0.0.1",
compatibility_level = 1,
)
bazel_dep(name = "aspect_rules_js", version = "2.1.3")
####### Node.js version #########
# By default you get the node version from DEFAULT_NODE_VERSION in @rules_nodejs//nodejs:repositories.bzl
# Optionally you can pin a different node version:
bazel_dep(name = "rules_nodejs", version = "6.3.0")
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
node.toolchain(node_version = "16.14.2")
#################################
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm")
npm.npm_translate_lock(
name = "npm",
pnpm_lock = "//:pnpm-lock.yaml",
#verify_node_modules_ignored = "//:.bazelignore",
)
use_repo(npm, "npm")
pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm")
# Allows developers to use the matching pnpm version, for example:
# bazel run -- @pnpm --dir /home/runner/work/rules_js/rules_js install
use_repo(pnpm, "pnpm")
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "oss_cad_suite",
build_file = "oss_cad_suite.BUILD.bazel",
sha256 = "e6434197cd3a31dd90899886b0f4b92ebf1f832eb9abb3a8802e120c2ca5cc73",
strip_prefix = "oss-cad-suite",
urls = ["https://github.com/YosysHQ/oss-cad-suite-build/releases/download/2024-08-28/oss-cad-suite-linux-x64-20240828.tgz"],
)
load_json_file = use_repo_rule("//:load_json_file.bzl", "load_json_file")
load_json_file(
name = "orfs_variable_metadata",
src = "@docker_orfs//:OpenROAD-flow-scripts/flow/scripts/variables.yaml",
# Dummy output file, we're not actually using it
out = "variables.json",
script = "//:yaml_to_json.py",
)
bazel_dep(
name = "rules_python",
version = "1.2.0",
# reduce namespace collisions by prefixing with bazel_orfs
repo_name = "bazel_orfs_rules_python",
)
python = use_extension("@bazel_orfs_rules_python//python/extensions:python.bzl", "python")
python.toolchain(
ignore_root_user_error = True,
python_version = "3.13",
)
pip = use_extension("@bazel_orfs_rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "bazel-orfs-pip",
python_version = "3.13",
requirements_lock = "//:requirements_lock_3_13.txt",
)
use_repo(pip, "bazel-orfs-pip")
orfs = use_extension("//:extension.bzl", "orfs_repositories")
orfs.default(
# a local only or remote docker image. Local docker images do not
# have a sha256.
image = "docker.io/openroad/orfs:v3.0-2883-ge22e4fc7",
# Smoketest, this is the default value
makefile = "@docker_orfs//:makefile",
# Comment out line below for local only docker images
sha256 = "6ad0b1b7fbf290f33f0050ead4da181c83c6e8a9337b65f5f9cff65d67788424",
)
use_repo(orfs, "com_github_nixos_patchelf_download")
use_repo(orfs, "docker_orfs")
use_repo(orfs, "config")