diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2023-10-12 08:26:55 +0200 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2023-10-12 08:26:55 +0200 |
| commit | 0c7a35b86acdfb77b0d2c8bffd1b8dd8cf951fc3 (patch) | |
| tree | 4ce4177dcfc96b19532430cc11c8a668bb4ba694 /patches/bazel-workspace.patch | |
| parent | f7d20b909f8f872ba9e7889e76f32fe0532d845f (diff) | |
guix-science: Add Bazel.
* guix-science/packages/bazel.scm: New file.
* patches/bazel-mock-repos.patch, patches/bazel-workspace.patch: New
patches.
Diffstat (limited to 'patches/bazel-workspace.patch')
| -rw-r--r-- | patches/bazel-workspace.patch | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/patches/bazel-workspace.patch b/patches/bazel-workspace.patch new file mode 100644 index 0000000..552b9dc --- /dev/null +++ b/patches/bazel-workspace.patch | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | Adapted from https://salsa.debian.org/bazel-team/bazel-bootstrap/-/raw/2e1af7d3d0ec789a71c16f5ecd07232efc0f262a/debian/patches/WORKSPACE.patch | ||
| 2 | |||
| 3 | Description: Debian-specific fixes in WORKSPACE file | ||
| 4 | Bazel needs to download some dependencies just to properly parse the | ||
| 5 | WORKSPACE file. We comment some load statements so that it won’t download | ||
| 6 | the things we don’t need for building Bazel binary. Also, remove @io_bazel | ||
| 7 | reference that was causing ccache failures. | ||
| 8 | Author: Yun Peng <pcloudy@google.com> | ||
| 9 | Origin: upstream, https://github.com/meteorcloudy/bazel/commit/1c38681aec9dee4eeeeac6196154c01e67878d65 | ||
| 10 | Forwarded: not-needed | ||
| 11 | Last-Update: 2020-07-22 | ||
| 12 | |||
| 13 | --- a/WORKSPACE | ||
| 14 | +++ b/WORKSPACE | ||
| 15 | @@ -1188,22 +1170,6 @@ | ||
| 16 | |||
| 17 | stardoc_repositories() | ||
| 18 | |||
| 19 | -load("@io_bazel_rules_sass//:package.bzl", "rules_sass_dependencies") | ||
| 20 | - | ||
| 21 | -rules_sass_dependencies() | ||
| 22 | - | ||
| 23 | -load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies") | ||
| 24 | - | ||
| 25 | -build_bazel_rules_nodejs_dependencies() | ||
| 26 | - | ||
| 27 | -load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories") | ||
| 28 | - | ||
| 29 | -node_repositories() | ||
| 30 | - | ||
| 31 | -load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories") | ||
| 32 | - | ||
| 33 | -sass_repositories() | ||
| 34 | - | ||
| 35 | register_execution_platforms("//:default_host_platform") # buildozer: disable=positional-args | ||
| 36 | |||
| 37 | # Tools for building deb, rpm and tar files. | ||
| 38 | @@ -1241,20 +1211,6 @@ | ||
| 39 | ], | ||
| 40 | ) | ||
| 41 | |||
| 42 | -# Projects using gRPC as an external dependency must call both grpc_deps() and | ||
| 43 | -# grpc_extra_deps(). | ||
| 44 | -load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") | ||
| 45 | - | ||
| 46 | -grpc_deps() | ||
| 47 | - | ||
| 48 | -load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps") | ||
| 49 | - | ||
| 50 | -grpc_extra_deps() | ||
| 51 | - | ||
| 52 | load("//tools/distributions/debian:deps.bzl", "debian_deps") | ||
| 53 | |||
| 54 | debian_deps() | ||
| 55 | - | ||
| 56 | -load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") | ||
| 57 | - | ||
| 58 | -bazel_skylib_workspace() | ||
