1workspace(name = "com_github_google_flatbuffers") 2 3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") 4 5http_archive( 6 name = "platforms", 7 sha256 = "379113459b0feaf6bfbb584a91874c065078aa673222846ac765f86661c27407", 8 urls = [ 9 "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.5/platforms-0.0.5.tar.gz", 10 "https://github.com/bazelbuild/platforms/releases/download/0.0.5/platforms-0.0.5.tar.gz", 11 ], 12) 13 14http_archive( 15 name = "build_bazel_rules_swift", 16 sha256 = "a2fd565e527f83fb3f9eb07eb9737240e668c9242d3bc318712efa54a7deda97", 17 url = "https://github.com/bazelbuild/rules_swift/releases/download/0.27.0/rules_swift.0.27.0.tar.gz", 18) 19 20load( 21 "@build_bazel_rules_swift//swift:repositories.bzl", 22 "swift_rules_dependencies", 23) 24 25swift_rules_dependencies() 26 27load( 28 "@build_bazel_rules_swift//swift:extras.bzl", 29 "swift_rules_extra_dependencies", 30) 31 32swift_rules_extra_dependencies() 33 34http_archive( 35 name = "io_bazel_rules_go", 36 sha256 = "16e9fca53ed6bd4ff4ad76facc9b7b651a89db1689a2877d6fd7b82aa824e366", 37 urls = [ 38 "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.34.0/rules_go-v0.34.0.zip", 39 "https://github.com/bazelbuild/rules_go/releases/download/v0.34.0/rules_go-v0.34.0.zip", 40 ], 41) 42 43load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies") 44 45go_rules_dependencies() 46 47##### Protobuf 48_PROTOBUF_VERSION = "3.15.2" 49 50http_archive( 51 name = "com_google_protobuf", 52 strip_prefix = "protobuf-" + _PROTOBUF_VERSION, 53 urls = [ 54 "https://github.com/protocolbuffers/protobuf/archive/v" + _PROTOBUF_VERSION + ".tar.gz", 55 ], 56) 57 58##### GRPC 59_GRPC_VERSION = "1.48.0" # https://github.com/grpc/grpc/releases/tag/v1.48.0 60 61http_archive( 62 name = "com_github_grpc_grpc", 63 strip_prefix = "grpc-" + _GRPC_VERSION, 64 urls = ["https://github.com/grpc/grpc/archive/refs/tags/v" + _GRPC_VERSION + ".tar.gz"], 65) 66 67load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") 68 69grpc_deps() 70 71load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps") 72 73grpc_extra_deps() 74 75# rules_go from https://github.com/bazelbuild/rules_go/releases/tag/v0.34.0 76http_archive( 77 name = "build_bazel_rules_nodejs", 78 sha256 = "965ee2492a2b087cf9e0f2ca472aeaf1be2eb650e0cfbddf514b9a7d3ea4b02a", 79 urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.2.0/rules_nodejs-5.2.0.tar.gz"], 80) 81 82load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies") 83 84build_bazel_rules_nodejs_dependencies() 85 86load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install") 87 88node_repositories() 89 90yarn_install( 91 name = "npm", 92 exports_directories_only = False, 93 # Unfreeze to add/remove packages. 94 frozen_lockfile = True, 95 package_json = "//:package.json", 96 symlink_node_modules = False, 97 yarn_lock = "//:yarn.lock", 98) 99