diff options
author | Matthew Sotoudeh <matthewsot@outlook.com> | 2020-04-13 08:40:01 -0700 |
---|---|---|
committer | Matthew Sotoudeh <matthewsot@outlook.com> | 2020-04-13 08:40:01 -0700 |
commit | 96e12c8a274ea3e08648116f3fb052e3de005560 (patch) | |
tree | cc419696e4e062fc7173876073598c98cae0aa63 /repositories.bzl | |
parent | 229b0f318e0160013c9c5700a22cc13da37fdcd8 (diff) |
Initial code release
Diffstat (limited to 'repositories.bzl')
-rw-r--r-- | repositories.bzl | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/repositories.bzl b/repositories.bzl new file mode 100644 index 0000000..d277c76 --- /dev/null +++ b/repositories.bzl @@ -0,0 +1,35 @@ +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + +def latex_repositories(): + """Adds external dependencies necessary for Bazel-LaTeX. + """ + http_archive( + name = "bazel_latex_latexrun", + build_file_content = "exports_files([\"latexrun\"])", + patches = [ + "@bazel_latex//:patches/latexrun-force-colors", + "@bazel_latex//:patches/latexrun-pull-21", + "@bazel_latex//:patches/latexrun-pull-47", + "@bazel_latex//:patches/latexrun-pull-61", + "@bazel_latex//:patches/latexrun-pull-62", + ], + sha256 = "4e1512fde5a05d1249fd6b4e6610cdab8e14ddba82a7cbb58dc7d5c0ba468c2a", + strip_prefix = "latexrun-38ff6ec2815654513c91f64bdf2a5760c85da26e", + url = "https://github.com/aclements/latexrun/archive/38ff6ec2815654513c91f64bdf2a5760c85da26e.tar.gz", + ) + + http_archive( + name = "pdfcrop", + build_file_content = "exports_files([\"pdfcrop.pl\"])", + sha256 = "4226acd990b3a6db6f9e3bf8949e308b97fa74f8c404023bfb3ce598400a72a4", + strip_prefix = "pdfcrop", + url = "http://mirrors.ctan.org/support/pdfcrop.zip", + ) + + http_archive( + name = "arxiv_latex_cleaner", + build_file_content = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])""", + sha256 = "770c65993c964405bb5362ee75039970434ef395872356980e470b6b044ac427", + strip_prefix = "arxiv-latex-cleaner-ea4db65744837bb1205a4fd14b56244b2e639c34", + url = "https://github.com/google-research/arxiv-latex-cleaner/archive/ea4db65744837bb1205a4fd14b56244b2e639c34.tar.gz", + ) |