# Copyright 2021 The XLS Authors
#
# 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
#
#      http://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.

"""Loads the rules_hdl package which contains Bazel rules for other tools that
XLS uses."""

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")

def repo():
    maybe(
        http_archive,
        name = "rules_hdl",
        sha256 = "3149a553a98c9b4bfe31eb00363dd535820b22abed568ba0c60957ff7ec63e2a",
        strip_prefix = "bazel_rules_hdl-06705603bf3456bcabc28008d19ea5da22359fe5",
        urls = [
            "https://github.com/per-gron/bazel_rules_hdl/archive/06705603bf3456bcabc28008d19ea5da22359fe5.tar.gz",  # 2021-04-14
        ],
    )

@@ -895,72 +895,72 @@
  = %22
-3149a553a98c9b4bfe31eb00363dd535820b22abed568ba0c60957ff7ec63e2a
+818026634fa14f00c020b679ea0b26066ed544a9b9a14a4a586d9f317a70e0e0
 %22,%0A 
@@ -1002,48 +1002,48 @@
 hdl-
-06705603bf3456bcabc28008d19ea5da22359fe5
+ce8d2c758d985de988aba430e6db599c28b245a7
 %22,%0A 
@@ -1094,16 +1094,11 @@
 com/
-per-gron
+hdl
 /baz
@@ -1122,48 +1122,48 @@
 ive/
-06705603bf3456bcabc28008d19ea5da22359fe5
+ce8d2c758d985de988aba430e6db599c28b245a7
 .tar
@@ -1181,12 +1181,12 @@
 21-0
-4-14
+6-22
 %0A   

Migrate dependency to hdl/rules_hdl repo.