blob: df78388ccf9a65ad2066663a440174b0ab046e3f [file] [log] [blame]
Lorenz Brun344237a2024-08-21 17:33:36 +02001load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2
3def urcu_external(name, version):
4 sums = {
5 "0.14.0": "sha256-QvtRKaP//lpLeQ3+HqOnNMae4JX++/ZJMmJpu6lMJi0=",
6 }
7
8 http_archive(
9 name = name,
10 integrity = sums[version],
11 strip_prefix = "userspace-rcu-" + version,
12 build_file = "@//third_party/urcu:urcu.bzl",
13 patch_args = ["-p1"],
14 patches = ["//third_party/urcu/patches:generated-files.patch"],
15 urls = ["https://github.com/urcu/userspace-rcu/archive/refs/tags/v%s.tar.gz" % version],
16 )