|
| 1 | +"Bazel dependencies" |
| 2 | + |
| 3 | +module( |
| 4 | + name = "bazel_linux_packages", |
| 5 | + version = "0.0.7", |
| 6 | + bazel_compatibility = [">=8.1.0"], |
| 7 | + compatibility_level = 1, |
| 8 | +) |
| 9 | + |
| 10 | +bazel_dep(name = "platforms", version = "0.0.11") |
| 11 | +bazel_dep(name = "bazel_skylib", version = "1.7.1") |
| 12 | +bazel_dep(name = "aspect_bazel_lib", version = "2.14.0") |
| 13 | + |
| 14 | +deb_archive = use_repo_rule("//internal:deb.bzl", "deb_archive") |
| 15 | + |
| 16 | +deb_archive( |
| 17 | + name = "busybox_linux_amd64", |
| 18 | + integrity = "sha256-rMRMIHKVuGEU2kiV71Ouvxhr8839wmmloaCer6xqYNs=", |
| 19 | + urls = ["https://snapshot.debian.org/archive/debian/20250201T023325Z/pool/main/b/busybox/busybox-static_1.35.0-4%2Bb3_amd64.deb"], |
| 20 | +) |
| 21 | + |
| 22 | +deb_archive( |
| 23 | + name = "busybox_linux_arm64", |
| 24 | + integrity = "sha256-C0+0zi0/0Woc11BTX5d1ugxC2GOeE9ZjUka6g6DUvc8=", |
| 25 | + urls = ["https://snapshot.debian.org/archive/debian/20250201T023325Z/pool/main/b/busybox/busybox-static_1.35.0-4%2Bb3_arm64.deb"], |
| 26 | +) |
| 27 | + |
| 28 | +http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 29 | + |
| 30 | +http_archive( |
| 31 | + name = "patchelf_linux_amd64", |
| 32 | + build_file_content = "alias(name='patchelf', actual='bin/patchelf')", |
| 33 | + integrity = "sha256-TcQP3TtrwQi3ublkHlTMN4K96kGZp8edkQb9YZKj6SY=", |
| 34 | + urls = ["https://github.com/NixOS/patchelf/releases/download/0.16.1/patchelf-0.16.1-x86_64.tar.gz"], |
| 35 | +) |
| 36 | + |
| 37 | +http_archive( |
| 38 | + name = "patchelf_linux_arm64", |
| 39 | + build_file_content = "alias(name='patchelf', actual='bin/patchelf')", |
| 40 | + integrity = "sha256-dDqoMkWeXJVzQQaVDEgm58Y37PJOnkJkRNnO6s92+Ws=", |
| 41 | + urls = ["https://github.com/NixOS/patchelf/releases/download/0.16.1/patchelf-0.16.1-aarch64.tar.gz"], |
| 42 | +) |
| 43 | + |
| 44 | +bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") |
| 45 | +use_repo(bazel_lib_toolchains, "zstd_linux_amd64") |
| 46 | +use_repo(bazel_lib_toolchains, "zstd_linux_arm64") |
| 47 | + |
| 48 | +# Dev dependencies |
| 49 | +bazel_dep(name = "gazelle", version = "0.42.0", dev_dependency = True, repo_name = "bazel_gazelle") |
| 50 | +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.7.1", dev_dependency = True) |
| 51 | +bazel_dep(name = "buildifier_prebuilt", version = "8.0.1", dev_dependency = True) |
0 commit comments