-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrepositories.bzl
36 lines (33 loc) · 1.55 KB
/
repositories.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
def io_tweag_gazelle_nix_repositories():
""" Load repositories required by gazelle_nix extension. """
maybe(
http_archive,
name = "io_tweag_rules_nixpkgs",
sha256 = "941b0a6c45eb60b8245d79d71053d608499d1a9aba166c7a1b34d40c95112b4a",
strip_prefix = "rules_nixpkgs-%s" % "027dc977d0cb8d93c43a5ae0e812c779e88beb9a",
urls = ["https://github.com/tweag/rules_nixpkgs/archive/%s.tar.gz" % "027dc977d0cb8d93c43a5ae0e812c779e88beb9a"],
)
maybe(
http_archive,
name = "io_bazel_rules_go",
sha256 = "f2dcd210c7095febe54b804bb1cd3a58fe8435a909db2ec04e31542631cf715c",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.31.0/rules_go-v0.31.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.31.0/rules_go-v0.31.0.zip",
],
)
maybe(
http_archive,
name = "bazel_gazelle",
sha256 = "00cda3c9210a8f6368dff5f3b050b8ef5e5253d1b491bce74a7932120897d96d",
strip_prefix = "bazel-gazelle-%s" % "56d35f8db086bb65ef876f96f7baa7b71516daf8",
urls = [
"https://github.com/bazelbuild/bazel-gazelle/archive/56d35f8db086bb65ef876f96f7baa7b71516daf8.tar.gz",
],
patches = [
# https://github.com/bazelbuild/bazel-gazelle/issues/1217
"@io_tweag_gazelle_nix//:patches/001-org_golang_x_mod.patch",
],
)