Skip to content

Commit

Permalink
Add mirrors to external repositories (bazel-contrib#1153)
Browse files Browse the repository at this point in the history
  • Loading branch information
mishazharov authored and matt-sm committed Jan 8, 2024
1 parent 15c8c6c commit adfb424
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions toolchains/built_toolchains.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def _ninja_toolchain(version, register_toolchains):
sha256 = "31747ae633213f1eda3842686f83c2aa1412e0f5691d1c14dbbcc67fe7400cea",
strip_prefix = "ninja-1.11.1",
urls = [
"https://mirror.bazel.build/github.com/ninja-build/ninja/archive/v1.11.1.tar.gz",
"https://github.com/ninja-build/ninja/archive/v1.11.1.tar.gz",
],
)
Expand All @@ -140,6 +141,7 @@ def _ninja_toolchain(version, register_toolchains):
sha256 = "3c6ba2e66400fe3f1ae83deb4b235faf3137ec20bd5b08c29bfc368db143e4c6",
strip_prefix = "ninja-1.11.0",
urls = [
"https://mirror.bazel.build/github.com/ninja-build/ninja/archive/v1.11.0.tar.gz",
"https://github.com/ninja-build/ninja/archive/v1.11.0.tar.gz",
],
)
Expand All @@ -152,6 +154,7 @@ def _ninja_toolchain(version, register_toolchains):
sha256 = "ce35865411f0490368a8fc383f29071de6690cbadc27704734978221f25e2bed",
strip_prefix = "ninja-1.10.2",
urls = [
"https://mirror.bazel.build/github.com/ninja-build/ninja/archive/v1.10.2.tar.gz",
"https://github.com/ninja-build/ninja/archive/v1.10.2.tar.gz",
],
)
Expand All @@ -171,7 +174,10 @@ def _meson_toolchain(version, register_toolchains):
build_file_content = _MESON_BUILD_FILE_CONTENT,
sha256 = "d04b541f97ca439fb82fab7d0d480988be4bd4e62563a5ca35fadb5400727b1c",
strip_prefix = "meson-1.1.1",
url = "https://github.com/mesonbuild/meson/releases/download/1.1.1/meson-1.1.1.tar.gz",
urls = [
"https://mirror.bazel.build/github.com/mesonbuild/meson/releases/download/1.1.1/meson-1.1.1.tar.gz",
"https://github.com/mesonbuild/meson/releases/download/1.1.1/meson-1.1.1.tar.gz",
],
)
return
if version == "0.63.0":
Expand All @@ -181,7 +187,10 @@ def _meson_toolchain(version, register_toolchains):
build_file_content = _MESON_BUILD_FILE_CONTENT,
sha256 = "3b51d451744c2bc71838524ec8d96cd4f8c4793d5b8d5d0d0a9c8a4f7c94cd6f",
strip_prefix = "meson-0.63.0",
url = "https://github.com/mesonbuild/meson/releases/download/0.63.0/meson-0.63.0.tar.gz",
urls = [
"https://mirror.bazel.build/github.com/mesonbuild/meson/releases/download/0.63.0/meson-0.63.0.tar.gz",
"https://github.com/mesonbuild/meson/releases/download/0.63.0/meson-0.63.0.tar.gz",
],
)
return

Expand All @@ -208,6 +217,7 @@ cc_import(
''',
sha256 = "bdf18506df304d38be98a4b3f18055b8b8cca81beabecad0eece6ce95319c369",
urls = [
"https://mirror.bazel.build/download.gnome.org/binaries/win64/glib/2.26/glib-dev_2.26.1-1_win64.zip",
"https://download.gnome.org/binaries/win64/glib/2.26/glib-dev_2.26.1-1_win64.zip",
],
)
Expand All @@ -225,6 +235,7 @@ cc_import(
sha256 = "bc96f63112823b7d6c9f06572d2ad626ddac7eb452c04d762592197f6e07898e",
strip_prefix = "glib-2.26.1",
urls = [
"https://mirror.bazel.build/download.gnome.org/sources/glib/2.26/glib-2.26.1.tar.gz",
"https://download.gnome.org/sources/glib/2.26/glib-2.26.1.tar.gz",
],
)
Expand All @@ -246,6 +257,7 @@ exports_files(
''',
sha256 = "88d857087e86f16a9be651ee7021880b3f7ba050d34a1ed9f06113b8799cb973",
urls = [
"https://mirror.bazel.build/download.gnome.org/binaries/win64/glib/2.26/glib_2.26.1-1_win64.zip",
"https://download.gnome.org/binaries/win64/glib/2.26/glib_2.26.1-1_win64.zip",
],
)
Expand All @@ -262,6 +274,7 @@ cc_import(
''',
sha256 = "1f4269c0e021076d60a54e98da6f978a3195013f6de21674ba0edbc339c5b079",
urls = [
"https://mirror.bazel.build/download.gnome.org/binaries/win64/dependencies/gettext-runtime_0.18.1.1-2_win64.zip",
"https://download.gnome.org/binaries/win64/dependencies/gettext-runtime_0.18.1.1-2_win64.zip",
],
)
Expand All @@ -282,6 +295,7 @@ cc_import(
],
urls = [
"https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz",
"https://mirror.bazel.build/pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz",
],
)
return
Expand Down

0 comments on commit adfb424

Please sign in to comment.