Skip to content

Commit

Permalink
Merge pull request #40 from dezren39/patch-2
Browse files Browse the repository at this point in the history
Document Declarative Taps
  • Loading branch information
zhaofengli authored Nov 12, 2024
2 parents b5224d5 + c59b075 commit d66fc9c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,19 @@ Extra prefixes may be configured:
```

Note that with a non-standard prefix, you will no longer be able to use most bottles (prebuilt packages).

## Declarative Taps

In Homebrew, the repo part of all taps always have `homebrew-` prepended.
- https://docs.brew.sh/Taps
- https://docs.brew.sh/Interesting-Taps-and-Forks

`brew tap <user>/<repo>` makes a clone of the repository at `https://github.com/<user>/homebrew-<repo>` into `$(brew --repository)/Library/Taps`.

When declaring taps, please ensure to name the key as a unique folder starting with `homebrew-`, e.g.:
```diff
nix-homebrew.taps = {
- "mtslzr/marmaduke-chromium" = inputs.marmaduke-chromium;
+ "mtslzr/homebrew-marmaduke-chromium" = inputs.marmaduke-chromium;
```
The exact GitHub `<user>/<repo>` should almost always work.

0 comments on commit d66fc9c

Please sign in to comment.