| # Copyright 2024 Google LLC |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # https://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| """Load dependent repositories""" |
| |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| def mpact_riscv_repos(): |
| """ Load dependencies needed to use mpact-riscv as a 3rd-party consumer""" |
| |
| if not native.existing_rule("com_google_mpact-sim"): |
| http_archive( |
| name = "com_google_mpact-sim", |
| sha256 = "e4115bbe5c5039d442378da745fc7401c79f9e52df590191d872354c7a999c58", |
| strip_prefix = "mpact-sim-4a9e8505f3a02719b076fdee5a838217d770ad89", |
| url = "https://github.com/google/mpact-sim/archive/4a9e8505f3a02719b076fdee5a838217d770ad89.tar.gz", |
| ) |