From 96e12c8a274ea3e08648116f3fb052e3de005560 Mon Sep 17 00:00:00 2001 From: Matthew Sotoudeh Date: Mon, 13 Apr 2020 08:40:01 -0700 Subject: Initial code release --- repositories.bzl | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 repositories.bzl (limited to 'repositories.bzl') 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", + ) -- cgit v1.2.3