text: # Copyright 2020 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
  #
  #      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 Flex lexer generator, used by iverilog."""
  
  load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
  load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
  
  def com_github_westes_flex():
      maybe(
          http_archive,
          name = "com_github_westes_flex",
          urls = [
              "https://github.com/westes/flex/files/981163/flex-2.6.4.tar.gz",
          ],
          strip_prefix = "flex-2.6.4",
          sha256 = "e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995",
          build_file = Label("//dependency_support:com_github_westes_flex/bundled.BUILD.bazel"),
      )
  