Skip to content

Commit

Permalink
Merge pull request #119 from Vertexwahn/bzlmod-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
solsjo authored Oct 13, 2024
2 parents 227b02f + 102757c commit c552d5b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.3.1
7.3.2
4 changes: 2 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Rules for building LaTeX documents with Bazel.
"""

module(
Expand Down Expand Up @@ -60,7 +60,7 @@ use_repo(
"ghost_script_source",
)

# mac os shared lib was difficult to build via foreign rules so as a temporary
# macOS shared lib was difficult to build via foreign rules so as a temporary
# solution we provide it as a precompiled artifact.
# Consider making it available via bazel_latex binaries repo instead
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ command flag mentioned below to build with biber instead.

# Using these rules

## Traditional workspace approach

Add the following to `WORKSPACE`:

```python
Expand Down Expand Up @@ -63,6 +65,22 @@ filegroup(
)
```

## Using Bzlmod

Add to your `MODULE.bazel` file:

```python
bazel_dep(name = "bazel_latex")

git_override(
module_name = "bazel_latex",
remote = "https://github.com/ProdriveTechnologies/bazel-latex.git",
commit = "227b02f346c1dd0098d32b5bcb1ef874dd367e2a",
)
```

## Build files

And add the following `load()` directive to your `BUILD` files:

```python
Expand Down

0 comments on commit c552d5b

Please sign in to comment.