WORKSPACE 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. workspace(name = "carbon")
  5. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
  6. ###############################################################################
  7. # Example conversion repositories
  8. ###############################################################################
  9. local_repository(
  10. name = "brotli",
  11. path = "third_party/examples/brotli/original",
  12. )
  13. new_local_repository(
  14. name = "woff2",
  15. build_file = "third_party/examples/woff2/BUILD.original",
  16. path = "third_party/examples/woff2/original",
  17. workspace_file = "third_party/examples/woff2/WORKSPACE.original",
  18. )
  19. local_repository(
  20. name = "woff2_carbon",
  21. path = "third_party/examples/woff2/carbon",
  22. )
  23. ###############################################################################
  24. # Treesitter rules
  25. ###############################################################################
  26. http_archive(
  27. name = "rules_nodejs",
  28. sha256 = "d124665ea12f89153086746821cf6c9ef93ab88360a50c1aeefa1fe522421704",
  29. strip_prefix = "rules_nodejs-6.0.0-beta1",
  30. url = "https://github.com/bazelbuild/rules_nodejs/releases/download/v6.0.0-beta1/rules_nodejs-v6.0.0-beta1.tar.gz",
  31. )
  32. load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
  33. nodejs_register_toolchains(
  34. name = "nodejs",
  35. node_version = DEFAULT_NODE_VERSION,
  36. )
  37. http_archive(
  38. name = "rules_tree_sitter",
  39. sha256 = "a09f177a2b8acb2f8a84def6ca0c41a5bd26b25634aa7313f22ade6c54e57ca1",
  40. strip_prefix = "rules_tree_sitter-bc3a2131053207de7dfd9b24046b811ce770e35d",
  41. urls = ["https://github.com/Maan2003/rules_tree_sitter/archive/bc3a2131053207de7dfd9b24046b811ce770e35d.tar.gz"],
  42. )
  43. load("@rules_tree_sitter//tree_sitter:tree_sitter.bzl", "tree_sitter_register_toolchains")
  44. tree_sitter_register_toolchains()