Skip to content

Commit

Permalink
Add @com_github_luben_zstd_jni repo to WORKSPACE.
Browse files Browse the repository at this point in the history
Partial import of bazelbuild#11968.

PiperOrigin-RevId: 341407243
  • Loading branch information
glukasiknuro authored and copybara-github committed Nov 9, 2020
1 parent 7fcc26c commit 5137f36
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ distdir_tar(
"aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz",
# abseil/abseil-cpp
"df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
# com_github_luben_zstd_jni
"v1.4.5-11.tar.gz",
],
dirname = "derived/distdir",
sha256 = {
Expand Down Expand Up @@ -224,6 +226,8 @@ distdir_tar(
"aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz": "9f385e146410a8150b6f4cb1a57eab7ec806ced48d427554b1e754877ff26c3e",
# abseil/abseil-cpp
"df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz": "f368a8476f4e2e0eccf8a7318b98dafbe30b2600f4e3cf52636e5eb145aba06a",
# com_github_luben_zstd_jni
"v1.4.5-11.tar.gz": "9a33de540e4a10a080a22ff918c1bc2f585647f73ea30694eb095a1844b3f052",
},
urls = {
"e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": [
Expand Down Expand Up @@ -322,6 +326,11 @@ distdir_tar(
"https://mirror.bazel.build/github.com/abseil/abseil-cpp/archive/df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
"https://github.com/abseil/abseil-cpp/archive/df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
],
# com_github_luben_zstd_jni
"v1.4.5-11.tar.gz": [
"https://mirror.bazel.build/github.com/luben/zstd-jni/archive/v1.4.5-11.tar.gz",
"https://github.com/luben/zstd-jni/archive/v1.4.5-11.tar.gz",
],
},
)

Expand Down Expand Up @@ -539,6 +548,19 @@ http_archive(
],
)

http_archive(
name = "com_github_luben_zstd_jni",
build_file = "//third_party/zstd-jni:BUILD.bazel",
patch_args = ["-p1"],
patches = ["//third_party/zstd-jni:zstd-jni_1.4.5-11.patch"],
sha256 = "9a33de540e4a10a080a22ff918c1bc2f585647f73ea30694eb095a1844b3f052",
strip_prefix = "zstd-jni-1.4.5-11",
urls = [
"https://mirror.bazel.build/github.com/luben/zstd-jni/archive/v1.4.5-11.tar.gz",
"https://github.com/luben/zstd-jni/archive/v1.4.5-11.tar.gz",
],
)

# For testing, have an distdir_tar with all the archives implicit in every
# WORKSPACE, to that they don't have to be refetched for every test
# calling `bazel sync`.
Expand Down

0 comments on commit 5137f36

Please sign in to comment.