blob: 2a22ad49fa75f2c4446c4379f949a55679ec74e3 [file] [log] [blame]
Serge Bazanski46e72ab2022-09-05 15:13:22 +02001load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2
3def libpg_query_external(name, version):
4 sums = {
Tim Windelschmidt3fdaeac2023-11-13 23:33:07 +01005 "15-4.2.3": "8b820d63442b1677ce4f0df2a95b3fafdbc520a82901def81217559ec4df9e6b",
Serge Bazanski46e72ab2022-09-05 15:13:22 +02006 }
7 http_archive(
8 name = name,
9 build_file = "//third_party/libpg_query/external:BUILD.repo",
10 sha256 = sums[version],
11 strip_prefix = "libpg_query-" + version,
12 urls = ["https://github.com/pganalyze/libpg_query/archive/refs/tags/%s.tar.gz" % version],
13 )