Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module(
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_foreign_cc", version = "0.12.0")
bazel_dep(name = "rules_python", version = "0.36.0")
bazel_dep(name = "rules_shell", version = "0.6.1")

pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
Expand Down
5 changes: 3 additions & 2 deletions latex.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Rules to compile LaTeX documents.
"""

load("@bazel_latex//:latex_engine_cmds.bzl", "lualatex_engine_cmd_gen")
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")

LatexOutputInfo = provider(
"Information about the result of a LaTeX compilation.",
Expand Down Expand Up @@ -373,7 +374,7 @@ def latex_document(
)

# Convenience rule for viewing outputs.
native.sh_binary(
sh_binary(
name = "{}_view_output".format(name),
srcs = ["@bazel_latex//:view_output.sh"],
data = [":{}.{}".format(name, format)],
Expand All @@ -382,7 +383,7 @@ def latex_document(
)

# Convenience rule for viewing outputs, silencing stderr.
native.sh_binary(
sh_binary(
name = "{}_view".format(name),
srcs = ["@bazel_latex//:view_output.sh"],
data = [":{}.{}".format(name, format)],
Expand Down
1 change: 1 addition & 0 deletions repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def _latex_run_repository():
http_archive(
name = "bazel_latex_latexrun",
build_file_content = """
load("@rules_python//python:py_binary.bzl", "py_binary")
py_binary(
name = "latexrun",
srcs = ["latexrun.py"],
Expand Down
Loading