blob: d6cbf8365201ba4c08bc4c5a63da786b15418b8c [file] [log] [blame]
# Copyright (C) 2015-2022 Google LLC
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
load(
"@bazel_tools//tools/build_defs/repo:git.bzl",
"git_repository",
"new_git_repository",
)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def nginx_repositories():
# packaging
new_git_repository(
name = "nginx_pkgoss",
build_file = "@nginx//bazel/external:nginx_pkgoss.BUILD",
commit = "77f27b3ede2335976a1fb0fff031cf0779a54772", # nginx-1.23.0
remote = "https://nginx.googlesource.com/nginx-pkgoss",
shallow_since = "1655830808 +0400",
)
http_archive(
name = "rules_pkg",
sha256 = "038f1caa773a7e35b3663865ffb003169c6a71dc995e39bf4815792f385d837d",
url = "https://github.com/bazelbuild/rules_pkg/releases/download/0.4.0/rules_pkg-0.4.0.tar.gz",
)
# BoringSSL
git_repository(
name = "boringssl",
commit = "62079f7cb4e9a2d5d8a68fe8a4a3f2375dd53585", # 2022-05-10
remote = "https://boringssl.googlesource.com/boringssl",
shallow_since = "1652203513 +0000",
)
# PCRE
http_archive(
name = "pcre",
build_file = "@nginx//bazel/external:pcre.BUILD",
sha256 = "4e6ce03e0336e8b4a3d6c2b70b1c5e18590a5673a98186da90d4f33c23defc09",
strip_prefix = "pcre-8.45",
url = "https://downloads.sourceforge.net/project/pcre/pcre/8.45/pcre-8.45.tar.gz",
)
# zlib
http_archive(
name = "zlib",
build_file = "@nginx//bazel/external:zlib.BUILD",
sha256 = "91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9",
strip_prefix = "zlib-1.2.12",
url = "https://zlib.net/zlib-1.2.12.tar.gz",
)
# ngx_brotli + dependencies
new_git_repository(
name = "ngx_brotli",
build_file = "@nginx//bazel/external:ngx_brotli.BUILD",
commit = "5ead1ada782b18c7b38a3c2798a40a334801c7b6", # 2016-12-05
remote = "https://nginx.googlesource.com/ngx_brotli",
shallow_since = "1480976257 +0000",
)
git_repository(
name = "org_brotli",
commit = "222564a95d9ab58865a096b8d9f7324ea5f2e03e", # 2016-12-02
remote = "https://github.com/google/brotli.git",
shallow_since = "1480681940 +0100",
patches = ["@nginx//bazel/external:brotli.patch"],
)