old_contents: # 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():
      # 2021-06-23
      git_hash = "48fa8fec570f8f9a4185fad8dbb3c575952779bf"
      git_sha256 = "f2021c5ec9fbba57f5c25acfaed69d8032d9a19ed5679877a04254a21cd051d6"
  
      maybe(
          http_archive,
          name = "rules_hdl",
          sha256 = git_sha256,
          strip_prefix = "bazel_rules_hdl-%s" % git_hash,
          urls = [
              "https://github.com/hdl/bazel_rules_hdl/archive/%s.tar.gz" % git_hash,  # 2021-06-23
          ],
      )
  
new_contents: # 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():
      # 2021-06-23
      git_hash = "f2fafb02606aba078f255e120f009480c3148a77"
      git_sha256 = "56cc56c3d2151a9af2082fcf0406fd5f06e30ffa706eeba610e8a8fcdc95c8ee"
  
      maybe(
          http_archive,
          name = "rules_hdl",
          sha256 = git_sha256,
          strip_prefix = "bazel_rules_hdl-%s" % git_hash,
          urls = [
              "https://github.com/hdl/bazel_rules_hdl/archive/%s.tar.gz" % git_hash,  # 2021-06-23
          ],
      )
  
subject: Update bazel rules hdl repo