-
Notifications
You must be signed in to change notification settings - Fork 5
/
MODULE.bazel
52 lines (44 loc) · 1.68 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
module(
name = "bazel-orfs",
version = "0.0.1",
compatibility_level = 1,
)
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-1755-g18371323",
# Comment out line below for local only docker images
sha256 = "43ce53d1eed2f75857532e1d066eb9d5f78d7cb9bd89646429f3f6dc33aee7b7",
)
use_repo(orfs, "com_github_nixos_patchelf_download")
use_repo(orfs, "docker_orfs")
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 = "0.31.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
ignore_root_user_error = True,
python_version = "3.12",
)
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "pip",
python_version = "3.12",
requirements_lock = "//:requirements_lock.txt",
)
use_repo(pip, "pip")