-
Notifications
You must be signed in to change notification settings - Fork 0
/
load_rules_ghdl_deps.bzl
27 lines (23 loc) · 1.14 KB
/
load_rules_ghdl_deps.bzl
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
"""Load dependencies needed to compile a ghdl binary as a 3rd-party consumer."""
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def load_rules_ghdl_deps():
"""Loads common dependencies needed to compile a ghdl binary."""
if not native.existing_rule("bazel_skylib"):
http_archive(
name = "bazel_skylib",
urls = [
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz",
],
sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d",
)
if not native.existing_rule("ghdl_toolchain"):
http_archive(
name = "ghdl_toolchain",
urls = [
"https://github.com/ghdl/ghdl/archive/refs/tags/v1.0.0.zip"
],
sha256 = "0f2043ba0a79ff2088cd4471c408313cd6af9f63b0100be2a0dc4824a7e93dd3",
strip_prefix = "ghdl-1.0.0",
build_file = "@rules_ghdl//src:ghdl_toolchain.BUILD"
)