-
Notifications
You must be signed in to change notification settings - Fork 13
/
repositories.bzl
61 lines (56 loc) · 2.04 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def pandoc_repositories():
http_archive(
name = "pandoc_bin_linux",
build_file_content = """
filegroup(
name = "pandoc",
srcs = ["bin/pandoc"],
visibility = ["//visibility:public"],
)""",
sha256 = "859609cdba5af61aefd7c93d174e412d6a38f5c1be90dfc357158638ff5e7059",
strip_prefix = "pandoc-2.3.1",
url = "https://github.com/jgm/pandoc/releases/download/2.3.1/pandoc-2.3.1-linux.tar.gz",
)
http_archive(
name = "pandoc_bin_macOS",
build_file_content = """
filegroup(
name = "pandoc",
srcs = ["bin/pandoc"],
visibility = ["//visibility:public"],
)""",
sha256 = "bc9ba6f1f4f447deff811554603edcdb13344b07b969151569b6e46e1c8c81b7",
strip_prefix = "pandoc-2.3.1",
url = "https://github.com/jgm/pandoc/releases/download/2.3.1/pandoc-2.3.1-macOS.zip",
)
http_archive(
name = "pandoc_bin_windows-i386",
build_file_content = """
filegroup(
name = "pandoc",
srcs = ["pandoc.exe"],
visibility = ["//visibility:public"],
)""",
sha256 = "4b878dfc094af245621581cf30afbe2eb401dc886f59edbe67356e691a4c72cc",
strip_prefix = "pandoc-2.3.1-windows-i386",
url = "https://github.com/jgm/pandoc/releases/download/2.3.1/pandoc-2.3.1-windows-i386.zip",
)
http_archive(
name = "pandoc_bin_windows-x86_64",
build_file_content = """
filegroup(
name = "pandoc",
srcs = ["pandoc.exe"],
visibility = ["//visibility:public"],
)""",
sha256 = "c84377a6ddb45b149c297af3e37aacaa8f82535c929aa74723f7a75d7d7b15ab",
strip_prefix = "pandoc-2.3.1-windows-x86_64",
url = "https://github.com/jgm/pandoc/releases/download/2.3.1/pandoc-2.3.1-windows-x86_64.zip",
)
native.register_toolchains(
"@bazel_pandoc//:pandoc_toolchain_linux",
"@bazel_pandoc//:pandoc_toolchain_macOS",
"@bazel_pandoc//:pandoc_toolchain_windows-i386",
"@bazel_pandoc//:pandoc_toolchain_windows-x86_64",
)