Packaging an executable for homebrew install for non-OCaml users

All official Homebrew formulas are located in this GitHub repo: https://github.com/Homebrew/homebrew-core/tree/master/Formula

The interesting part is install.

Examples using make:

Dune:

Opam:

Examples using dune:

Coq:

Menhir:

Examples using Opam and something else:

Semgrep (Opam & Python):

Reference

Homebrew’s Formula reference: Formula Cookbook — Homebrew Documentation

3 Likes