blob: 7996f156198f6c0928d88fdf09d8901fda8d0f4c [file]
# Copyright 2023 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
module(
name = "fflash",
)
#
# Zig
#
bazel_dep(
name = "hermetic_cc_toolchain",
version = "2.1.1",
)
toolchains = use_extension("@hermetic_cc_toolchain//toolchain:ext.bzl", "toolchains")
use_repo(toolchains, "zig_sdk")
register_toolchains(
"@zig_sdk//toolchain:linux_amd64_gnu.2.28",
)
archive_override(
module_name = "hermetic_cc_toolchain",
integrity = "sha256-hqzlzSEdCuSacpoRr7NEhDaYtkRk8glad2xX673wZpg=",
urls = [
"https://github.com/uber/hermetic_cc_toolchain/releases/download/v2.1.1/hermetic_cc_toolchain-v2.1.1.tar.gz",
],
)
#
# Go
#
bazel_dep(
name = "gazelle",
version = "0.33.0",
)
bazel_dep(
name = "rules_go",
version = "0.41.0",
)
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
# All *direct* Go dependencies of the module have to be listed explicitly.
use_repo(
go_deps,
"com_github_alecthomas_kingpin",
"com_github_frankban_quicktest",
"com_github_klauspost_readahead",
"com_google_cloud_go_storage",
"org_golang_google_api",
"org_golang_x_crypto",
"org_golang_x_exp",
"org_golang_x_oauth2",
)